package.elm-lang.org icon indicating copy to clipboard operation
package.elm-lang.org copied to clipboard

Can't link directly to section of package README

Open ianmackenzie opened this issue 6 years ago • 0 comments
trafficstars

For example, attempting to load

https://package.elm-lang.org/packages/ianmackenzie/elm-units/latest/#multiplication-and-division

will generally just load the README for elm-units without additionally jumping down to the "Multiplication and division" section. Scrolling down to the table of contents on that page and clicking on the "Multiplication and division" link there does work (and ends up showing the same URL as above in the title bar). Interestingly the behavior is slightly different across browsers (I tested Chrome 74, Firefox 66, Edge 42 and IE 11 on Windows 10):

  • In all browsers, navigating to that URL or refreshing on that URL will just load the README without scrolling to the "Multiplication and division" section (although IE has some weird behavior where it sometimes seems to scroll to the section...)
  • In all browsers except Chrome, hitting 'Enter' on that URL after the README has loaded will then scroll down to the section (Chrome just stays at the top of the page)
  • In all browsers, clicking on the 'Multiplication and division' link on the page will scroll down to the section

ianmackenzie avatar May 24 '19 17:05 ianmackenzie