Last modified: 2012-08-14 17:34:40 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 T41202, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39202 - Parsoid: Use relative URLs in wiki links
Parsoid: Use relative URLs in wiki links
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: High normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-09 20:21 UTC by Gabriel Wicke
Modified: 2012-08-14 17:34 UTC (History)
3 users (show)

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


Attachments

Description Gabriel Wicke 2012-08-09 20:21:10 UTC
Wiki links should use relative links by default. This is more compact, and makes the DOM independent of config variables. All links in wiki pages where the title contains slashes should be prefixed with ../ so that all titles are absolute. Clients thus only need to strip any ../ prefixes to get normalized, absolute wiki link target.

URLs in the web API should switch from interwiki prefixes like /mw:Foo to /mw/Foo. 

In general, URLs where the page title is not a path component can still be supported by setting the base href to an appropriate value.
Comment 1 Gabriel Wicke 2012-08-10 19:46:38 UTC
Fix pushed for review in https://gerrit.wikimedia.org/r/#/c/18441/.
Comment 2 Gabriel Wicke 2012-08-10 21:13:55 UTC
Merged.

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


Navigation
Links