Maybe in Article.php:
$outputPage->setCanonicalUrl( $this->getTitle()->getLocalURL() );
should be replaced with:
$outputPage->setCanonicalUrl( $this->getTitle()->getCanonicalURL() );
at the same time.
Version: 1.22.0
Severity: normal
Maybe in Article.php:
$outputPage->setCanonicalUrl( $this->getTitle()->getLocalURL() );
should be replaced with:
$outputPage->setCanonicalUrl( $this->getTitle()->getCanonicalURL() );
at the same time.
Version: 1.22.0
Severity: normal
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T99587 Make the Mobile site more discoverable by search engines | |||
Open | None | T93550 Fix canonical URL issues (tracking) | |||
Duplicate | None | T53455 rel="canonical" should enforce $wgCanonicalServer for the "host" segment of the url |
btw this seems like a more generic version of bug 48402.
Setting canonical to http://localhost/ is asked here when http://127.0.0.1/ is accessed.