Last modified: 2008-10-06 06:56:56 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 15858 - Can not create "view-source:" links in wikitext
Can not create "view-source:" links in wikitext
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
  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: ---


Description Sean Colombo 2008-10-06 03:14:00 UTC
Normally, an html link of the form "view-source:" 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.