Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This worked like a Charm to fetch the live URL on page load every single time:-) Commented Feb 2, 2021 at 13:54
  • Very nice! However, I suggest to introduce local variables let parameterKey = decode(match[1]); let parameterValue = decode(match[2]);. This makes it more obvious what is happening IMHO. Commented Jul 7, 2021 at 6:30
  • I used this one as fallback to the top answer, as after that this is the most complete solution Commented Nov 14, 2022 at 15:25