Skip to content

fix ref=canonical in HTML page headers#12941

Merged
larsoner merged 1 commit intomne-tools:mainfrom
drammock:fix-canonical-ref
Nov 5, 2024
Merged

fix ref=canonical in HTML page headers#12941
larsoner merged 1 commit intomne-tools:mainfrom
drammock:fix-canonical-ref

Conversation

@drammock
Copy link
Copy Markdown
Member

@drammock drammock commented Nov 4, 2024

a google search console report made me realize we've been doing canonical hints wrong. We had been telling crawlers that the stable docs homepage was the canonical version for every page in our docs. This fixes it so that the corresponding stable docs page is marked as canonical, e.g., https://mne.tools/**dev**/auto_tutorials/preprocessing/10_preprocessing_overview.html will now have https://mne.tools/**stable**/auto_tutorials/preprocessing/10_preprocessing_overview.html as its canonical version.

Copy link
Copy Markdown
Member

@larsoner larsoner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops! Nice catch @drammock

@larsoner larsoner enabled auto-merge (squash) November 5, 2024 15:56
@larsoner larsoner merged commit b3ecaab into mne-tools:main Nov 5, 2024
@drammock drammock deleted the fix-canonical-ref branch November 26, 2024 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants