Skip to content

Doc links are not consistent on path names #165

@harrisi

Description

@harrisi

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
  • click on enif_release_binary link from the description of enif_alloc_binary
    • this will use erl_nif#enif_release_binary
  • 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#foo location from erl_nif#bar.

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions