Docs: Add note that you might want Title::getLinkURL

While there are valid use cases of Title::getLocalURL, it is safer
to use Title::getLinkURL in most instances.  Additionally developers
won't accidentally their fragments that way.

Change-Id: I1bf567ba9c38103d39a883e8ea3a60f9f2082181
This commit is contained in:
Erik Bernhardson 2014-08-01 13:58:51 -07:00
parent 7b6fded11e
commit 64c208a27d

View file

@ -1643,6 +1643,8 @@ class Title {
* $wgServer is prepended to make an absolute URL.
*
* @see self::getFullURL to always get an absolute URL.
* @see self::getLinkURL to always get a URL that's the simplest URL that will be
* valid to link, locally, to the current Title.
* @see self::newFromText to produce a Title object.
*
* @param string|array $query An optional query string,