Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: include query parameters in locale redirect #6132

Merged
merged 2 commits into from
Feb 17, 2023

Conversation

dbnicholson
Copy link
Contributor

When requesting a page without an explicit locale, the server will redirect to a locale specific page. However, the redirect drops the query parameters on the original request. It would be nice to retain the query parameters. We have a page that has some JS to further redirect someone to a more specific page. Currently this only works when the original request goes to a page with an explicit locale.

@NGPixel NGPixel merged commit 78a35c3 into requarks:main Feb 17, 2023
@dbnicholson dbnicholson deleted the locale-redirect-query-params branch February 17, 2023 00:17
davidflypei pushed a commit to davidflypei/wiki that referenced this pull request Jun 13, 2023
* feat: include query parameters in locale redirect

* refactor: code cleanup

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
jionggyu pushed a commit to jionggyu/wiki-2.5.302-patch that referenced this pull request Jul 9, 2024
* feat: include query parameters in locale redirect

* refactor: code cleanup

---------

Co-authored-by: Nicolas Giard <github@ngpixel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants