Page MenuHomePhabricator

Support fragments in mw.util.getUrl()
Closed, ResolvedPublic

Description

Currently mw.util.getUrl() does not support fragments.

mw.util.getUrl( 'Title Ä#Fragment Ä', { useskin: 'vector' } )

evaluates to /wiki/Title_%C3%84%23Fragment_%C3%84?useskin=vector.

Expected result: /wiki/Title_%C3%84?useskin=vector#Fragment_.C3.84

Event Timeline

Fomafix raised the priority of this task from to Needs Triage.
Fomafix updated the task description. (Show Details)
Fomafix added a project: JavaScript.
Fomafix subscribed.
matmarex subscribed.

I'm going to propose (and mentor) this as a task for Google-Code-In-2015.

matmarex triaged this task as Medium priority.Oct 27 2015, 9:51 PM
Unicornisaurous subscribed.

I've claimed this on the GCI website.

Change 260217 had a related patch set uploaded (by Unicornisaurous):
Support fragments in mw.util.getUrl()

https://gerrit.wikimedia.org/r/260217

Change 260217 merged by jenkins-bot:
Support fragments in mw.util.getUrl()

https://gerrit.wikimedia.org/r/260217

Change 260328 had a related patch set uploaded (by Gerrit Patch Uploader):
mediawiki.util: Use correct encoding for fragment in getUrl

https://gerrit.wikimedia.org/r/260328

Change 260328 merged by jenkins-bot:
mediawiki.util: Use correct encoding for fragment in getUrl

https://gerrit.wikimedia.org/r/260328