Hello there,
we have a wiki here were we restricting even read-access to logged-in users and thus require authentication (using PluggableAuth together with SimpleSAMLphp to implement Web-Single-Signon, setting "wgPluggableAuth_EnableAutoLogin" to "true").
So far this works really well!
But when we provide someone with a "deep-link" to a page (".../index.php?title=Pagename") and she/he is not yet logged-in at our wiki and thus gets redirected to the login page, the information about the originally requested page gets lost and after logging in our users see the mainpage of our wiki.
I looked through the code to see what's going on and saw that PluggableAuthHooks::doBeforeInitialize does the right thing: it redirects to "Special:UserLogin" and adds the GET-parameters "returnto" and "returntoquery".
But after this "SpecialPageFactory::executePath" kicks in and ignores everything PluggableAuthHooks::doBeforeInitialize did. This is even documented in a comment at the very beginning of the executePath function:
// @todo FIXME: Redirects broken due to this call
From what I can see on github this line is there since 8 years!
So my question is:
Does "deep-linking" work for anyone in the setup we have?
Did this ever work?
Greetings
Hermann