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: canonical links #1262

Merged
merged 4 commits into from
Apr 16, 2023
Merged

fix: canonical links #1262

merged 4 commits into from
Apr 16, 2023

Conversation

kai687
Copy link
Owner

@kai687 kai687 commented Apr 16, 2023

Upstream Sphinx doesn't construct canonical links correctly for the DirectoryHTMLBuilder.
When I introduced #650, it included a bug for index.html pages.

This PR adds a proper fix with tests this time to make sure that canonical links are what they should be. This PR is a follow up of #1258 and reverts the change in layout.html. Checking the canonical link shouldn't be done in the template.

It's reported here: #9730

@kai687 kai687 self-assigned this Apr 16, 2023
@kai687 kai687 added the bug Something isn't working label Apr 16, 2023
@netlify
Copy link

netlify bot commented Apr 16, 2023

Deploy Preview for sphinxawesome-theme ready!

Name Link
🔨 Latest commit 595e628
🔍 Latest deploy log https://app.netlify.com/sites/sphinxawesome-theme/deploys/643b84f1c39f810008756ada
😎 Deploy Preview https://deploy-preview-1262--sphinxawesome-theme.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@kai687 kai687 merged commit 22cd08f into master Apr 16, 2023
@kai687 kai687 deleted the fix/pageurl branch April 16, 2023 05:24
kai687 added a commit that referenced this pull request Apr 16, 2023
This PR adds a few more options for DocSearch,
such as `placeholder`, `initial_query`, and `missing_results_url`.

As a follow up from #1262, this PR also removes quotes `"` from the
caption in `options.rst`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant