Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: make link back to homepage stay on current language #19

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

tillywoodfield
Copy link
Contributor

In the header, there is a link which goes back to the homepage of the documentation site. Previously this was only tested for a single language, so going back to / was fine. However, the way Read The Docs deploys multiple languages/versions is my-domain.com/en/latest so going back to / always takes the user back to the default language and the latest version, rather than the homepage for the language and version that they were on. This fixes that by using Sphinx's pathto function instead.

@tillywoodfield tillywoodfield merged commit f02cc65 into main Nov 6, 2024
3 checks passed
@tillywoodfield tillywoodfield deleted the fix-homepage-link branch November 6, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants