Function redirect() changed

Published on and tagged with problem  tip

Today, after synchronizing with the cake repository (I use the trunk version), I got an “Unknown host mypage” error after I logged into my application. The reason for this error message was a change in the redirect() function. It no longer works to do redirects in the form

$this->redirect(‘/mypage’);

Instead you have to use

$this->redirect(‘mypage’);

So I had to change all of my redirects…

Update: In the meantime a patch has been added, so you can use both variants.

Bake a comment




(for code please use <code>...</code> [no escaping necessary])

© daniel hofstetter. Licensed under a Creative Commons License