Jump to content

Redirect API


Peter Knight
 Share

Recommended Posts

Is there something wrong with the following redirect syntax ?

<?php
$session->redirect($page->get(1184)->url);
?>

I've used this (below) to successfully redirect to a child URL so thought I was on the right track.

<?php
$session->redirect($page->child->url);
?>
Link to comment
Share on other sites

Now that we are on it, why isn't there an api function/command that can do a redirect without the $session thing ?

Well because this functionality somehow best belongs to the $session API variable :)

  • Like 1
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

×
×
  • Create New...