← Back to team overview

mahara-contributors team mailing list archive

[Bug 1852026] [NEW] using URLSearchParams to get url parameters in js

 

Public bug reported:

we have a function in js/mahara.js called getUrlParameter(param, url)

We should update that one to use this " new URLSearchParams() " seen as
it's valid for every browser except old IE (which we don't support)
https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

Actually we could also update our updateUrlParameter() as the
URLSearchParams() can do get() and set()

** Affects: mahara
     Importance: Low
         Status: Confirmed

** Changed in: mahara
   Importance: Undecided => Low

** Changed in: mahara
       Status: New => Confirmed

** Changed in: mahara
    Milestone: None => 20.04.0

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1852026

Title:
  using URLSearchParams to get url parameters in js

Status in Mahara:
  Confirmed

Bug description:
  we have a function in js/mahara.js called getUrlParameter(param, url)

  We should update that one to use this " new URLSearchParams() " seen
  as it's valid for every browser except old IE (which we don't support)
  https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

  Actually we could also update our updateUrlParameter() as the
  URLSearchParams() can do get() and set()

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1852026/+subscriptions


Follow ups