Bug description.
When you go into the learn or docs page on any topic, for example here https://huggingface.co/learn/llm-course/chapter1/5?fw=pt and finish the chapter, if before that you opened any other /learn or /docs page, the arrows to next and previous chapters are gonna be replaced.
For example, I was on the said chapter and finished it and then clicked the link that was given at the end https://huggingface.co/docs/transformers/tasks/image_classification.
Then the arrows to the previous and next chapter changed, and became "Automatic speech recognition", "Image segmentation"
When they should have been "How do transformers work?", "Transformer architectures"
Describe the expected behaviour
The arrows pointing to previous and next pages should remain same for a given chapter on a /learn or /docs page.