Add option for absolute URLs to action=parse
Open, LowPublic


When using action=parse to get HTML of a page, all links are relative, e.g.


Some people (see e.g. seem to want absolute URLs in links instead:

I think it would be useful if there was an option for action=parse to make all links absolute (or, alternatively, protocol-relative).

Version: 1.20.x
Severity: enhancement


bzimport raised the priority of this task from to Low.
bzimport set Reference to bz40128.
bzimport added a subscriber: Unknown Object (MLST).
Svick created this task.Sep 10 2012, 10:04 AM
brion added a comment.Sep 10 2012, 5:40 PM

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.

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.

jayvdb added a subscriber: jayvdb.Feb 19 2015, 7:54 PM
Legoktm claimed this task.Feb 20 2015, 12:38 AM
Legoktm added a subscriber: Legoktm.