Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted July 26, 20186 yr 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 ?
July 26, 20186 yr 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 )
October 21, 20186 yr 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(''))"}
Archived
This topic is now archived and is closed to further replies.