Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
wegorz23 Posted July 26, 2018 Posted July 26, 2018 Hello, in IPB 3.x.x version I could used this code to redirect to another page : ipsRegistry::getClass('output')->silentRedirect($this->settings['my_url']); How can I do that in version 4 ?
newbie LAC Posted July 26, 2018 Posted July 26, 2018 Hello, \IPS\Output::i()->redirect(\IPS\Http\Url::internal('')); /** * Redirect * * @param \IPS\Http\Url $url URL to redirect to * @param string $message Optional message to display * @param int $httpStatusCode HTTP Status Code * @param bool $forceScreen If TRUE, an intermediate screen will be shown * @return void */ public function redirect( $url, $message='', $httpStatusCode=301, $forceScreen=FALSE )
Mercury Forever Posted October 21, 2018 Posted October 21, 2018 Hi @newbie LAC How would it be for a page or block?
newbie LAC Posted October 21, 2018 Posted October 21, 2018 2 hours ago, Fred Krugger said: Hi @newbie LAC How would it be for a page or block? Hello, {expression="\IPS\Output::i()->redirect(\IPS\Http\Url::internal(''))"}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.