redirect()

public function redirect(string $target_url): void

The redirect() method is supported by a dedicated helper function. For guidance on how to use it, click here.