Hi everyone,
ATM I’m fiddeling around with a little enigma (for me). − I hope some
one can help me … :-)
# I wanna do
Moving a page as a bot (written in PHP) with api.php without leaving a
redirect.
# the problem
I can move the page. − But the parameter "noredirect" (value = 1) seems
to be ignored. So every moved page exists with the redirect after moving …
# my guess
I guess there is something not correct with the (implementation of the)
user right "suppressredirect" (which is required for using the API
parameter "noredirect"; see [0]).
[0] <https://www.mediawiki.org/wiki/API:Move#Parameters>
# my conditions
## MW
* v1.27.3
## the bot
* I created a bot with my main account.
* the bot can do everything (edit, query, …) so far
* the bot is listed in the group "bot"
## /includes/DefaultSettings.php
L 5076: "$wgGroupPermissions['bot']['suppressredirect'] =
true;"
# one more point
If I query the API (api.php) for the moved page with the parameters
* prop=contributors
* titles=$MYPAGENAME
* pcrights=suppressrevision
I get empty (= no) contributors − so my bot has not the correct right …
I hope you can give me a hint how I can accomplish such a basic task.
Thanks a lot in advance and best regards
Kai