Last modified: 2011-06-20 23:35:39 UTC
Created attachment 8565 [details] Patch against r88594; untested, but a simple enough change to the URL to fix links such as "[[mw:foo]]" in Bugzilla comments The URL used in the Wikimedia Bugzilla extension (<http://svn.wikimedia.org/viewvc/mediawiki/trunk/tools/bugzilla/bugzilla-4.0/extensions/Wikimedia/Extension.pm?revision=86427&view=markup>) fails with links such as "[[mw:foo]]". This is annoying. The URL should be switched to pass through Special:Search. It should be a very simple change from "http://en.wikipedia.org/wiki/" to "http://en.wikipedia.org/w/index.php?title=Special:Search&go=Go&search=". Patch attached against r88594. It's untested, but I don't think the "?" and "&" will do anything in this context. I'm not sure if &go=Go is strictly necessary, but it doesn't seem to hurt anything, at least.
bug 22407 would also fix this (and would be nice even if bugzilla was fixed to recognize the mw prefix). Personally it seems wrong that a non-local interwiki link redirects when typed into the search box
(In reply to comment #1) > bug 22407 would also fix this (and would be nice even if bugzilla was fixed to > recognize the mw prefix). Sure, then you can just change the broken example in this bug from "[[mw:foo]]" to "[[wmf:foo]]" or whatever. > Personally it seems wrong that a non-local interwiki link redirects when typed > into the search box It seems far more wrong to return a bad title error. :-) As long as the behavior can be adjusted to not be annoying/horrible, I think it makes sense to modify the Perl module.
I meant it seems wrong for mediawiki to allow such a thing. Obviously, making bugzilla work with [[mw:foo]] will be a good thing no matter how its done :) What's the point of a local/non-local interwiki distinction if special:search will auto-redirect you regardless?
r88731 (I'd love to have this working soonish ;)
Updated on production.
Just wanted to quickly check something (bugzilla has no preview :( just due to weirdness in formatting my comment on bug 29406 comment 3. [[test'd]]