Jump to content

Is halting recommended after redirecting?


Jonathan Lahijani
 Share

Recommended Posts

Let's say you're doing a redirect like this in your template:

$session->redirect( $pages->get("/some-page/")->url );

Would halting be good practice after redirecting or does it not make a difference?

return $this->halt();

It wasn't clear in the blog post that introduced halting:
https://processwire.com/blog/posts/processwire-2.6.8-brings-new-version-of-reno-admin-theme-and-more/#new-this-gt-halt-method-for-use-in-template-files

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...