Last modified: 2012-07-31 06:08:01 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 T40875, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 38875 - New magic word: {{CANONICALSERVER}}
New magic word: {{CANONICALSERVER}}
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-31 03:47 UTC by Liangent
Modified: 2012-07-31 06:08 UTC (History)
1 user (show)

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


Attachments

Description Liangent 2012-07-31 03:47:26 UTC
Use http://www.mediawiki.org/wiki/Manual:$wgCanonicalServer as its value.
Comment 1 Krinkle 2012-07-31 04:59:26 UTC
There is a 1000 more magic words I could come up with, I think it is reasonable to require a set of actual real-world use cases before we add more.

I'm not objecting, just want to see some use cases so we can check if it is really needed or in need of something else.
Comment 2 Liangent 2012-07-31 05:08:56 UTC
(In reply to comment #1)
> I'm not objecting, just want to see some use cases so we can check if it is
> really needed or in need of something else.

I saw some pages using {{SERVER}}{{SCRIPTPATH}}/api.php to show a link to api.php to users but now I can't fix it to show a correct link.
Comment 3 Krinkle 2012-07-31 05:29:18 UTC
Why not? Protocol-relative urls are supported by MediaWiki. It works just fine, that's one the whole point of using protocol-relative urls.

Especially in page output, I don't think there's any need (unless proven other wise) to use the canonical protocol.

[{{SERVER}}{{SCRIPTPATH}}/api.php api.php] works just fine.
Comment 4 Liangent 2012-07-31 06:08:01 UTC
(In reply to comment #3)
> Why not? Protocol-relative urls are supported by MediaWiki. It works just fine,
> that's one the whole point of using protocol-relative urls.
> 
> Especially in page output, I don't think there's any need (unless proven other
> wise) to use the canonical protocol.
> 
> [{{SERVER}}{{SCRIPTPATH}}/api.php api.php] works just fine.

We want to show a visible URL, for example:

You can send a request to {{SERVER}}{{SCRIPTPATH}}/api.php?action=purge&titles=PAGE_TITLES_HERE&forcelinkupdate to update links tables.

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


Navigation
Links