On 1/4/08, catrope@svn.wikimedia.org catrope@svn.wikimedia.org wrote:
Revision: 29261 . . .
- Unbroke Special:Userrights for wikis without pretty URLs
** This probably shouldn't be hard-coded the way I did it . . .
$form .= Xml::hidden( 'title', 'Special:Userrights' );
Strange. I'm not sure how to fix this more correctly. You would think that action="http://example.com/w/index.php?title=Special:Userrights" plus a parameter user=Username would give a URL of http://example.com/w/index.php?title=Special:Userrights&user=Username, appending the parameters to the URL correctly, but you're right, it seems to give http://example.com/w/index.php?user=Username. Maybe that's why it was POSTed in the first place.
Perhaps the best thing to do would be to just always use non-pretty URLs for this, the way we do all the other times we use URL parameters. I don't have time to implement that this minute, unfortunately. Maybe later, if no one else does it first.