**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. <img width="865" height="336" alt="Image" src="https://github.com/user-attachments/assets/3821276d-8176-4d52-a884-f4e2e09c5d30" /> Then the arrows to the previous and next chapter changed, and became "Automatic speech recognition", "Image segmentation" <img width="865" height="336" alt="Image" src="https://github.com/user-attachments/assets/54278b14-d060-44e7-bc0e-d9e2b307ff00" /> When they should have been "How do transformers work?", "Transformer architectures" <img width="865" height="336" alt="Image" src="https://github.com/user-attachments/assets/429abbe2-6d2c-4ead-9eda-a898ebdbdea9" /> **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.