You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
The URIs of this SPA are build just by concatenating Strings. This causes "Error Loading Page" when such a string ends up in URL.
Steps to reproduce:
Register a profile with username like @#$%^&*
Navigate to this user's profile by clicking the username in the top navbar.
Actual result:
URL contains unescaped characters http://rtfeldman.github.io/elm-spa-example/#/profile/@#$%^&* and page shows "Error Loading Page"
Expected behavior:
URL has escaped characters and profile page is shown correctly.
I was recently solving similar problem in my app and was looking for a "canonical solution" to this kind of issue and found this example app (which I'd expect to be "golden standard" of how to write SPAs in Elm) is also plagued by this issue. I ended up solving it by writing custom URL segment parser like this: jhrcek/random-failures@e87b20b
The text was updated successfully, but these errors were encountered:
Summary:
The URIs of this SPA are build just by concatenating Strings. This causes "Error Loading Page" when such a string ends up in URL.
Steps to reproduce:
@#$%^&*
Actual result:
URL contains unescaped characters
http://rtfeldman.github.io/elm-spa-example/#/profile/@#$%^&*
and page shows "Error Loading Page"Expected behavior:
URL has escaped characters and profile page is shown correctly.
I was recently solving similar problem in my app and was looking for a "canonical solution" to this kind of issue and found this example app (which I'd expect to be "golden standard" of how to write SPAs in Elm) is also plagued by this issue. I ended up solving it by writing custom URL segment parser like this:
jhrcek/random-failures@e87b20b
The text was updated successfully, but these errors were encountered: