Skip to content

MAINT make sure canonical link is https://scikit-learn.org - #28487

Merged
jeremiedbb merged 1 commit into
scikit-learn:mainfrom
glemaitre:fix_canonical_link
Feb 20, 2024
Merged

jeremiedbb merged 1 commit into
scikit-learn:mainfrom
glemaitre:fix_canonical_link

Conversation

@glemaitre

Copy link
Copy Markdown
Member

While working on #28478, it seems that Algolia find that the canonical link is http://scikit-learn.org that does not match the landing page.

So I corrected the canonical link in layout.html. In addition, I make the other links in the documentation to match https.

<title>{{ title|striptags|e }}{{ titlesuffix }}</title>
{% endblock %}
<link rel="canonical" href="http://scikit-learn.org/stable/{{pagename}}.html" />
<link rel="canonical" href="https://scikit-learn.org/stable/{{pagename}}.html" />

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is actually what seems to bother the Algolia's crawler.

@glemaitre

Copy link
Copy Markdown
Member Author

ping @adrinjalali @ogrisel

@github-actions

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: b629b78. Link to the linter CI: here

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@jeremiedbb jeremiedbb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

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.

3 participants