-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
Description
Describe the bug
The sidebar and the content of the page use different paths for relative links. The sidebar uses *.html#foo, whereas links in the content use *#foo (i.e., no .html). This causes a roundtrip when using both, because the browser doesn't know they're the same page.
To Reproduce
- Navigate to https://www.erlang.org/doc/apps/erts/erl_nif.html
- from the sidebar click on
enif_alloc_binary()- this will use
erl_nif.html#enif_alloc_binary
- this will use
- click on
enif_release_binarylink from the description ofenif_alloc_binary- this will use
erl_nif#enif_release_binary
- this will use
- notice round trip
- if you then click a link to the same page from the sidebar, there will be another round trip to the
erl_nif.html#foolocation fromerl_nif#bar.
- if you then click a link to the same page from the sidebar, there will be another round trip to the
Expected behavior
No round trip for locations in the same page.
Affected versions
Docs issue related to transition to ex_doc, I believe.
Additional context
I'm not sure exactly where or how the sidebar links are being generated. I think it's just an ex_doc configuration issue or something, since this isn't in hexdocs (I checked the Elixir docs on hexdocs).