Last modified: 2013-08-14 12:11:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53455, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51455 - Add <link rel="canonical"> pointing to $wgCanonicalServer when the accessed server is not canonical
Add <link rel="canonical"> pointing to $wgCanonicalServer when the accessed s...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.22.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-16 18:22 UTC by Liangent
Modified: 2013-08-14 12:11 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2013-07-16 18:22:46 UTC
Maybe in Article.php:

$outputPage->setCanonicalUrl( $this->getTitle()->getLocalURL() );

should be replaced with:

$outputPage->setCanonicalUrl( $this->getTitle()->getCanonicalURL() );

at the same time.
Comment 1 Liangent 2013-08-14 12:11:35 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links