Reviews Redirect

Permalink
Here is the code from the Reviews block:


else { // add         
            $E->addEntry($_POST['commentText'], $_POST['name'], $_POST['email'], $_POST['rating'], (!$this->requireApproval), $cID, $uID );   
            $this->set('response', t('Thanks! Your comment has been posted.') );
            $this->saveAverageRating();


Can I change this to redirect to another page? If so, how?

Steve

tallacman
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
$this->redirect(''); i believe
tallacman replied on at Permalink Reply
tallacman
Thanks, Mike.
That gets me half way there

$this->redirect('http://www.myweddinglibrary.com/index.php?cID=118');

gets me:

http://localhost:8888/concrete5.4.0.3/index.php/http://www.myweddin...

Any ideas?

Steve
russellfeeed replied on at Permalink Reply
russellfeeed
I think you should be using the canonical paths... e.g.

/myblock/subpath/