huggingface / doc-builder

The package used to build the documentation of our Hugging Face repos
Apache License 2.0
92 stars 35 forks source link

[Bug] - Open a doc reference in a new tab wrongly exchange the current page navigation content for the ones of the newly opened page #486

Open carafelix opened 8 months ago

carafelix commented 8 months ago

Steps to reproduce:

  1. Open any document in the site. In this case is the models cards document
  2. Open any other document reference in a new tab. In this case Ctrl + Click models downloading from the left-side nav-bar

Original state: image

Original page scrambled after opening another document in a new tab: image

Notice, besides being on the same page, same tab, all the layout surrounding the document is broken. The next and prev pointers are now the ones from the recently opened tab, same for the left nav-bar and the right side overview / document structure.

Opening a new link (from that page) in a new tab should not change the content of the navbars in the original page.

Tested in: