Child pages
  • Why are request parameters appended to our hyperlinks
Skip to end of metadata
Go to start of metadata

We're trying to change the locale using the <url> tag, but after using the link, they all have an extra request parameter appended. A link that reads on the first display, after being used reads".

Here's the code we're using:

Doesn't work right!

The URL tag isn't meant to be used with a query string. The best way to write this would be:

Use the param tag instead

The reason is the url tag has this "includeParams" tag, which can automatically include all the query string parameters in the URL. The default value is GET, meaning all the GET parameters will be automatically included in the final URL, which is what we see here.

  • No labels