You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all, I've just been made aware that the canonical URLs in one of my docsites are not matching the page URLs, which is causing issues with our SEO. Basically, the fact that these docs are created using the dirhtml build option means that the page URLs are ending in /, but the canonicals in the source HTML are showing as ending in index.html or .html, so that's the page type that Google is displaying in search, instead of the URL we want.
It's an upstream issue with Sphinx (sphinx-doc/sphinx#9730) that has been open for over two years now.
Some themes are choosing to fix the issue themselves (Furo - pradyunsg/furo#682, Sphinx awesome theme - kai687/sphinxawesome-theme#1262) and I was wondering if pydata-sphinx-theme might choose to do the same. Unfortunately, I can't find any workarounds documented that aren't at the theme level and this is outside my area of expertise as a technical writer, so I thought I would ask here. Thank you!
The text was updated successfully, but these errors were encountered:
I've been exploring both Furo and Pydata as new base themes for Pallets projects, so I definitely wouldn't mind seeing my fix make it into here as well. A co-authored-by credit is a nice thought, thank you.
Hi all, I've just been made aware that the canonical URLs in one of my docsites are not matching the page URLs, which is causing issues with our SEO. Basically, the fact that these docs are created using the dirhtml build option means that the page URLs are ending in
/
, but the canonicals in the source HTML are showing as ending inindex.html
or.html
, so that's the page type that Google is displaying in search, instead of the URL we want.It's an upstream issue with Sphinx (sphinx-doc/sphinx#9730) that has been open for over two years now.
Some themes are choosing to fix the issue themselves (Furo - pradyunsg/furo#682, Sphinx awesome theme - kai687/sphinxawesome-theme#1262) and I was wondering if pydata-sphinx-theme might choose to do the same. Unfortunately, I can't find any workarounds documented that aren't at the theme level and this is outside my area of expertise as a technical writer, so I thought I would ask here. Thank you!
The text was updated successfully, but these errors were encountered: