# Les redirections au chargement suppriment les paramètres d'URL

**URL:** <https://meta.discourse.org/t/redirects-on-load-remove-url-parameters/282136>\
**Category:** Bug\
**Created:** [Octobre 13, 2023, 11:39 UTC](https://meta.discourse.org/t/redirects-on-load-remove-url-parameters/282136 "2023-10-13T11:39:28Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)\
**Post date:** [Octobre 18, 2023, 1:40 UTC](https://meta.discourse.org/t/redirects-on-load-remove-url-parameters/282136/8 "2023-10-18T01:40:40Z")

</div>

Ceci a été corrigé dans

> <https://github.com/discourse/discourse/pull/23965>
>
> Why this change?
> 
> When the URL \`/t/1234?preview\_theme\_id=21\` is loaded, we redir…ect to
> \`/t/\<topic slug\>/1234\` stripping the \`preview\_theme\_id\` query params.
> 
> What does this change do?
> 
> This change builds on 61248652cdbcc04cecccad939c53139a73b5313d and
> simply adds the \`preview\_theme\_id\` query param when redirecting.

---

_[View the full topic](https://meta.discourse.org/t/redirects-on-load-remove-url-parameters/282136)._
