loadout-ink / splat2-calc

Gear planning tool for Splatoon 2.
MIT License
112 stars 30 forks source link

Samsung mobile browser doesn't load builds from URL hash #2

Open DeviPotato opened 7 years ago

DeviPotato commented 7 years ago

Reported by Ansoulom on twitter:

"Hey, I'm having a really strange issue with the webpage. When I paste a saved link into my Samsung Internet browser on my phone, I just go to the starting page instead of the correct loadout. It works to paste it into firefox or to open the link from facebook messenger or something, but not when I paste it into the Samsung browser. Don't know if this is something you can do anything about, but it's strange nonetheless."

Upon loading, the URL hash is reset: "The URL is set to all 0s. I thought the same thing, but in that case it would be a pretty bad problem for the browser."

Currently thinking this is a browser issue (either the Samsung browser ignores hashes on loaded URLs, or the method used to load the hash is unsupported)

DeviPotato commented 7 years ago

Able to reproduce this issue in the Samsung Browser from the app store. Will investigate a fix.

DeviPotato commented 7 years ago

Looking at other sites that incorporate typical anchors, Samsung Internet's behavior is to strip hashes from URLs on load outright. Not sure if there's anything I can do to fix this.

Leward commented 7 years ago

One workaround could be to use HTML5 URLs with AngularJS. But the involves also some tuning on the server serving the static files.See AngularJS $location HTML5 Mode