Re: [Wikitech-l] How to do redirect 'the right way' when OutputPage::prepareErrorPage is triggered

2016-03-07 Thread Chris Steipp
On Mon, Mar 7, 2016 at 10:32 AM, Victor Danilchenko < vdanilche...@cimpress.com> wrote: > My simple solution to this is to forcibly invoke OutputPage::Output on the > spot, right there in the 'BeforeInitialize' hook: > > $this->output->redirect($https_url, 301); > $this->output->output(); >

[Wikitech-l] How to do redirect 'the right way' when OutputPage::prepareErrorPage is triggered

2016-03-07 Thread Victor Danilchenko
Hi all, I am running MediaWiki 1.26, and trying to force it to be all-SSL, all the time, excepting a particular Special: page. To that end, I have code which makes the following method call from a 'BeforeInitialize' hook: $this->output->redirect($https_url, 301); However, by the time