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

URL Rewriting: Special characters ie. ę, ą, ł and their url encoded representations aren't supported. #17423

Open
SzymonSel opened this issue Jan 29, 2025 · 10 comments

Comments

@SzymonSel
Copy link
Member

It's seem like special characters ie. ę, ą, ł and their url encoded representations aren't supported.

  • ę, ą, ł in the redirect URL cause an internal server error
  • endcoded ie. %C5%82 (which stands for ł) crashes the site completly.

Originally posted by @SzymonSel in #16687 (comment)

@hishamco hishamco self-assigned this Jan 29, 2025
@hishamco
Copy link
Member

I just tried a redirect rule with me -> ZoltánLehóczky and it works as expected. Sorry @Piedone for using your name but it fit nicely in this use case :)

@hishamco hishamco removed their assignment Jan 29, 2025
@hishamco
Copy link
Member

@SzymonSel no action is needed here, or give me details to reproduce your case

@Piedone
Copy link
Member

Piedone commented Jan 29, 2025

I feel there is a Polish joke in this somewhere, but as a Hungarian, I probably shouldn't throw stones in the glasshouse :).

@SzymonSel
Copy link
Member Author

Haha 😀
@hishamco Try redirecting to a page /zespół

@hishamco
Copy link
Member

hishamco commented Jan 29, 2025

Image

Please try the latest bits, it works as expected as well

@SzymonSel
Copy link
Member Author

This has no effect:

Image

And this crashes then site so it needs to be restarted. (Linux Web App on Azure)

Image

On OC 2.1.0-preview-18401. I will check the latest build.

@hishamco
Copy link
Member

hishamco commented Jan 29, 2025

Now it crashes the whole site, seems the issue comes from URL encoding. Could you please try zespol instead of encode the URL

@SzymonSel
Copy link
Member Author

zespol works of course.

@hishamco
Copy link
Member

hishamco commented Jan 29, 2025

Nah, I thought the issue was with the special characters. If a problem with the URL encoded, I will have a look one more time.

But the question is why do you encode the URL yourself? The AddApacheModRewrite() throws an exception when you are using such URL

@SzymonSel
Copy link
Member Author

Well redirectig to zespół doesn't work for me, so I started looking for solutions and one that stood out, was that it requires encoding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants