Last modified: 2008-10-06 06:56:56 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 T17858, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 15858 - Can not create "view-source:" links in wikitext
Can not create "view-source:" links in wikitext
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-06 03:14 UTC by Sean Colombo
Modified: 2008-10-06 06:56 UTC (History)
1 user (show)

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


Attachments

Description Sean Colombo 2008-10-06 03:14:00 UTC
Normally, an html link of the form "view-source:http://example.com/" can be used to send many browsers (at least Chrome and FireFox, haven't tested others) to the rendering of the source for that page.

There appears to be no way to create a link in MW wikitext that allows a link to be created to those URLs.
Comment 1 Fran Rogers 2008-10-06 06:56:56 UTC
This is intended behavior, as $wgUrlProtocols controls which protocols can be used in internal links, and the view-source 'protocol' isn't in there by default.

Add this:

$wgUrlProtocols[] = 'view-source';

to LocalSettings.php and it'll work. :)

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


Navigation
Links