{"action":"opened","issue":{"url":"https://api.github.com/repos/shakacode/react_on_rails/issues/403","repository_url":"https://api.github.com/repos/shakacode/react_on_rails","labels_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/403/labels{/name}","comments_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/403/comments","events_url":"https://api.github.com/repos/shakacode/react_on_rails/issues/403/events","html_url":"https://github.com/shakacode/react_on_rails/issues/403","id":150852575,"number":403,"title":"Replacing URI.parse with Addressable","user":{"login":"lucke84","id":783937,"avatar_url":"https://avatars.githubusercontent.com/u/783937?v=3","gravatar_id":"","url":"https://api.github.com/users/lucke84","html_url":"https://github.com/lucke84","followers_url":"https://api.github.com/users/lucke84/followers","following_url":"https://api.github.com/users/lucke84/following{/other_user}","gists_url":"https://api.github.com/users/lucke84/gists{/gist_id}","starred_url":"https://api.github.com/users/lucke84/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucke84/subscriptions","organizations_url":"https://api.github.com/users/lucke84/orgs","repos_url":"https://api.github.com/users/lucke84/repos","events_url":"https://api.github.com/users/lucke84/events{/privacy}","received_events_url":"https://api.github.com/users/lucke84/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-25T13:11:24Z","updated_at":"2016-04-25T13:11:24Z","closed_at":null,"body":"It seems the new `rails_context` method uses `uri = URI.parse(request.original_url)`, which sometimes fails to parse URIs with non-ASCII characters (see **react_on_rails_helper.rb**, line 361)\r\n\r\nHere's an example of a real-life(-ish) URI that should be supported but fails on our ReactOnRails powered website:\r\n```\r\nhttp://mywebsite.com/mypage?myparam=méridien\r\n```\r\n(note the `é` character in `myparam`'s value), returning an error like:\r\n```\r\nURI::InvalidURIError: URI must be ascii only \"http://mywebsite.com/mypage?myparam=mm\\u{e9}ridien\"\r\n```\r\n\r\nThe [addressable gem](https://rubygems.org/gems/addressable/versions/2.4.0) seems to be a valid alternative (which might become the official replacement for URI in the future). Unless I'm missing something here, is there a possibility to switch to using `addressable`? \r\n\r\nFeedback of what I might be doing wrong (e.g. not encoding properly?) are more than welcome as well."}}