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

Regex Redirect Unsual redirects #136

Open
mmtadam opened this issue Oct 14, 2024 · 0 comments
Open

Regex Redirect Unsual redirects #136

mmtadam opened this issue Oct 14, 2024 · 0 comments

Comments

@mmtadam
Copy link

mmtadam commented Oct 14, 2024

Hi,

I'm seeing some odd redirect using the regex redirect in the optimizely CMS, they passed me over here.

When I navigate to
/careers/search?searchTerm=early) careers professionals &default=false&filterOption=exact&countryFilters=[{"filterName":"Country","filterValue":"Singapore"}]

The regex is set to redirect to /careers/explore-our-careers/?take=12

However what I end up getting is
/en/careerssearch/?searchTerm=early%20careers%20professionals%20&default=false&filterOption=exact&countryFilters=[%7B%22filterName%22:%22Country%22,%22filterValue%22:%22Singapore%22%7D]

I tried with another url without the params in case that was the issue
/careers/test
and it became /en/careerstest
so what it seems to be doing is just removing the slash and adding en in front and I'm not sure why.
The 2 regexs are
(https://)(.)({domain}.com/careers/search)(.)
(https://)(.*)({domain}.com/careers/)(.+)

Any advice would be greatly appreciated

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

No branches or pull requests

1 participant