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

Unable to redirect to sites with non-UTF8 characters in URL #14

Open
briri opened this issue Oct 13, 2015 · 1 comment
Open

Unable to redirect to sites with non-UTF8 characters in URL #14

briri opened this issue Oct 13, 2015 · 1 comment

Comments

@briri
Copy link
Member

briri commented Oct 13, 2015

This issue was raised as a 'what if' scenario back in 2013.

System is unable to redirect to - http://例え.テスト/メインページ

There may potentially be an issue with the way Redis is storing its data, possibly a bad charset? Otherwise we need to convert whatever the user sends in to an IDN compliant value for the Redis DB.

For some reason when copying the URl from the address bar of different browsers you get different results:
Chrome - http://xn--r8jz45g.xn--zckzah/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8
Firefox - http://例え.テスト/%E3%83%A1%E3%82%A4%E3%83%B3%E3%83%9A%E3%83%BC%E3%82%B8
Safari - http://例え.テスト/メインページ

Taking any of these URLs and pasting them back into the address bar of any of the browsers takes you to the correct site.

Clicking on the link to the target within the PID service's admin pages (regardless of which of the URLs is saved) brings you to the correct target page.

Trying to get to the target via the PID service's redirect fails in Firefox and Safari (except for the idn compatible version of the URL from Chrome) but succeeds in Chrome and IE (for any of the URL versions)

@briri
Copy link
Member Author

briri commented Oct 13, 2015

Note that this Markdown document did not consider the Firefox and Safari versions of the URL to be a hyperlink!

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