craftercms / craftercms

Parent project for Crafter CMS. Issue tracking across all repositories and global builds.
GNU General Public License v3.0
288 stars 98 forks source link

XB drops request parameters on page view #6872

Open russdanner opened 1 month ago

russdanner commented 1 month ago

Duplicates

Latest version

Describe the issue

XB seems to 'redirect' on preview and "drops" request parameters in the redirect.

Steps to reproduce

Steps:

  1. Create a site based on Empty blueprint
  2. Add the following to markup to the rich text editor <p> <a href="/foo?param1=x&param2=y&param3=z">a link</a></p>
  3. Optional: Add the following markup to the template
    <#list requestParameters?keys as k>
          <li>${k} - ${requestParameters[k]}</li>
    </#list>
  4. Create a new page based on the entry type at /foo
  5. Click on the link on the home page
  6. Note that you are initially redirected to foo with all of the parameters http://localhost:8080/foo?param1=x&param2=y&param3=z and then redirects to http://localhost:8080/foo?param1=x
  7. Note that you can go directly to the page without studio and no redirect occurs.

Relevant log output

No response

Screenshots and/or videos

https://www.loom.com/share/9a997bd3e58849cc96e44b96caf40ed1