package.elm-lang.org
package.elm-lang.org copied to clipboard
URL and page shown can get out of sync
Observed Behaviour: Interacting with the navigation bar breaks the back button.
Steps to Reproduce:
- Visit a page, e.g. https://package.elm-lang.org/packages/evancz/url-parser/
- Click on the link "2.0.1". The URL changes to https://package.elm-lang.org/packages/evancz/url-parser/2.0.1/
- Click into the URL bar. Press enter. The page reloads. The URL is still at https://package.elm-lang.org/packages/evancz/url-parser/2.0.1/ and the correct page is shown.
- (Repeat step 3 zero or more times.)
- Now press the back-button. The URL changes to https://package.elm-lang.org/packages/evancz/url-parser/, but the actual content shown is https://package.elm-lang.org/packages/evancz/url-parser/2.0.1/
Expected Expected: After step 5 https://package.elm-lang.org/packages/evancz/url-parser/ is shown.
System Information: Firefox 61.0.2 (64-bit) on Linux
I am unable to reproduce this on Chrome 68.0.3440.106 (Official Build) (64-bit) on Mac.
Can you try to find other users who can confirm that they see this on their machines?
For what it's worth: I can't reproduce this on Chrome 66.0.3359.117 (Official Build) (64-bit), but I can on Firefox 61.0.2 (64-bit), both on Linux, so possibly this is Firefox-related.
I can also reproduce the issue on Firefox 61.0.2 on Android. But not on Chrome on Android.
I can also reproduce the issue in my closed source elm Browser.application
, which manipulates the history without hashes like https://package.elm-lang.org does. I can however not reproduce the issue using the elm-spa-example which uses fragment identifiers. (Since you cannot reload the page by selecting the navigation bar and pressing enter. Reloading with F5 does not trigger the bug.)
So this issue is most likely incorrectly filled. It's probably either a bug in Browser.application
or a bug in firefox.
Can folks figure out if there is anything in Firefox issues about this?