← Back to team overview

mahara-contributors team mailing list archive

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

 

** Changed in: mahara
       Status: In Progress => Fix Committed

-- 
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:
  Fix Committed

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


References