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

Fixes canonical URLs #733

Closed
wants to merge 2 commits into from
Closed

Fixes canonical URLs #733

wants to merge 2 commits into from

Conversation

skrawcz
Copy link

@skrawcz skrawcz commented Nov 11, 2023

The fix (#727) was missing language and version in the URL.

[edit]
In case anyone else comes across this. If the URL is missing en/latest for example, then you need to adjust your html_baseurl value. e.g. f"https://YOUR.DOMAIN/{language}/{version}"
[/edit]

The fix was missing language and version in the URL.

This change fixes that.
@pradyunsg
Copy link
Owner

pradyunsg commented Nov 11, 2023

This can be done on the conf.py directly: html_baseurl = f".../{language}/{version}/". This is highly coupled with how the documentation is served by RTD, and varies based on what the RTD configuration is; so I don't think we should be doing this.

@pradyunsg pradyunsg closed this Nov 11, 2023
@skrawcz
Copy link
Author

skrawcz commented Nov 11, 2023

Yep -- I thought what I was doing wasn't correct. Thanks for pointing that out.

@skrawcz skrawcz deleted the fix_canonical_links branch November 11, 2023 15:55
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.

None yet

2 participants