Page MenuHomePhabricator

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

Description

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

Details

Reference
bz51455

Event Timeline

bzimport raised the priority of this task from to Normal.Nov 22 2014, 2:03 AM
bzimport added a project: MediaWiki-Interface.
bzimport set Reference to bz51455.
bzimport added a subscriber: Unknown Object (MLST).
liangent created this task.Jul 16 2013, 6:22 PM

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.

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

Deskana moved this task from Tag to Done on the SEO board.Jul 6 2018, 10:28 AM