Last modified: 2014-01-26 07:56:04 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 T42128, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40128 - Add option for absolute URLs to action=parse
Add option for absolute URLs to action=parse
Status: NEW
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.20.x
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-10 10:04 UTC by Svick
Modified: 2014-01-26 07:56 UTC (History)
4 users (show)

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


Attachments

Description Svick 2012-09-10 10:04:26 UTC
When using action=parse to get HTML of a page, all links are relative, e.g.

/wiki/Metallica_(disambiguation)

Some people (see e.g. http://stackoverflow.com/q/12346445/41071) seem to want absolute URLs in links instead:

http://en.wikipedia.org/wiki/Metallica_(disambiguation)

I think it would be useful if there was an option for action=parse to make all links absolute (or, alternatively, protocol-relative).
Comment 1 Brion Vibber 2012-09-10 17:40:35 UTC
Avoid protocol-relative links -- these tend to turn into awkward things like "file://" or "ms-appx://" or something when including HTML into an app's webview.
Comment 2 Dereckson 2014-01-26 07:56:04 UTC
Case use: mirror a wiki page on an applicative intranet. The links to edit works fine, but images won't show.

10 years ago, as a workaround in such situations, there were the possibility to put several base href, before and after the content with the IE and Opera, but now the browsers follow the recommendation and take in consideration only the first href and the first target value encountered.

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


Navigation
Links