Page MenuHomePhabricator

rel="canonical" should enforce $wgCanonicalServer for the "host" segment of the url
Closed, DuplicatePublic


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



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:03 AM
bzimport set Reference to bz51455.
bzimport added a subscriber: Unknown Object (MLST).

btw this seems like a more generic version of bug 48402.

Setting canonical to http://localhost/ is asked here when is accessed.

Krinkle renamed this task from Add <link rel="canonical"> pointing to $wgCanonicalServer when the accessed server is not canonical to rel="canonical" should enforce $wgCanonicalServer for the "host" segment of the url.Jun 18 2015, 12:41 AM
Krinkle edited projects, added MediaWiki-General; removed MediaWiki-Interface.
Krinkle set Security to None.
Krinkle removed a subscriber: wikibugs-l-list.

Looks like a duplicate is being worked on? T67402