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

Don't add a second <link rel="canonical"> if there is one already #3

Closed
Krinkle opened this issue Mar 14, 2013 · 0 comments
Closed

Comments

@Krinkle
Copy link

Krinkle commented Mar 14, 2013

MediaWiki core adds one already when the page is accessed via a redirect pages (and in some other cases). Use OutputPage::setCanonicalUrl to override it in those cases (instead of adding another one).

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

No branches or pull requests

1 participant