huggingface / huggingface/course

Opening a link, using the new tab shortcut, referencing another docs page breaks the site sidebar and next/prev pointers

Open
#663 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
4.2k
Forks
1.4k
Avg merge
13m
Merged PRs (30d)
1

Description

Tested on Firefox 121 and Chrome 120.

Steps to reproduce:
- Open [any doc page](https://huggingface.co/learn/nlp-course/chapter1/5)
- Open a link referencing another doc page, using the hotkey. CTRL+Left-Click . RoBERTa in this example
- Nav bars in the current page are broken, since it's showing up the ones from the opened link instead of the ones in the actual page.

Preclick:
![image](https://github.com/huggingface/course/assets/48109042/baa7d974-20e5-41ad-a7ce-0ef7c5f92c37)
Postclick:
![image](https://github.com/huggingface/course/assets/48109042/cae0e381-a7d5-44c4-8623-544d8391495e)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.