https://bugzilla.wikimedia.org/show_bug.cgi?id=30803

--- Comment #11 from Krinkle <[email protected]> 2012-05-26 21:15:24 UTC ---
The relevance of the question mark presence is indeed not related to the page
name itself. However it is related to the url formatting. Because wgArticlePath
could look like this:
"/w/index.php?title=$1"

Then an additional query string has to start with `&` instead of `?`. Any
question mark in the title will be url encoded so a string search for that
shouldn't be match the page name.

(In reply to comment #10)
> mw.Title and mw.Uri does not support that right now, just as they do not
> support conversation between each other.

That sounds like a good place to start. There is something to be said about
keeping mw.Uri somewhat re-usable, so the special casing for 'title' and
'action' should ideally be handled through some kind of hook. ("paramHooks"
callbacks?) so that it is easy to extend or disable in the future.

Then from there we can make mw.Title use mw.Uri for url construction (returning
an mw.Uri object, which users of mw.Title can optionally convert to String or
then call a method on to add query parameters.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to