Hi everyone,
I would like to force a redirect to another page after the successful saving of pages in a certain namespace. I was able to do that in the most ugly way possible via a "ArticleUpdateBeforeRedirect" hook:
public static function onArticleUpdateBeforeRedirect( $article, &$sectionanchor, &$extraq) { if ($article->getTitle()->getNamespace() == NS_DESCRIPTION) { $extraq = "title=" . $article->getTitle()->getDBKey(); } }
What I would really like is to overwrite the "Location" header but that seems to be set after this hook is called.
Any ideas?
Cheers, Sebastian