Page 1 of 1

[SOLVED] Pretty URL's and redirects

Posted: Mon Oct 17, 2011 10:52 pm
by kidcardboard
I have pretty URL's enabled on a site I'm developing a module for and have implemented all the necessary routes and such for links within the module. I have a form which allows the user to send some info to a colleague and afterwards is redirected to the page that they came from. My problem is the redirect doesn't use pretty URL's. I've tried using:

Code: Select all

$this->RedirectForFrontEnd($id, $returnid, $action);
and

Code: Select all

$this->Redirect($id, $action, $returnid);
and both take me to the proper page, but with a non-pretty URL.

Am I missing something or am I gonna have to use header() or some other method?

Re: Pretty URL's and redirects

Posted: Mon Oct 17, 2011 11:07 pm
by calguy1000
That reminds me to deprecate those methods.

use redirect($this->create_url($id,$action,$returnid,....));

Re: Pretty URL's and redirects

Posted: Tue Oct 18, 2011 5:54 pm
by kidcardboard
Thanks. That did the trick.