I have an 2.1.1 app under a sub-path (example.com/*app-name*/).

I am doing a redirect like this:

$url = Router::url(array('controller' => 'user', 'action' => 'view', 5)); 
//yields "/*app-name*/user/view/5"
$this->redirect($url);

Redirects to '/*app-name*/*app-name*/user/view/5'. Essentially 
double-basing the url.

How can I:

A: Redirect to the direct url without using server name?
B: Get the app-relative path (/user/view/5)

Keep in mind that $url value is passed around and cannot be passed to the 
$this->redirect as an array.

I have also tried Router::parse('/*app-name*/user/view/5'); which gives me 
controller=> 'app-name', etc...

Thanks!

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.


Reply via email to