$title->mArticleID is always -1

it seems `$title->mArticleID` is always -1, I don't know why, but this check makes a redirect to the page where the login was started fail.