logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Zend_Controller_Action_Helper_Redirector strange behaviour: msg#00542

Subject: Re: Zend_Controller_Action_Helper_Redirector strange behaviour
Stoyan Kyosev wrote:
What if I want to redirect to relative URL ? I'm providing array('prependBase' => false) as

options to _redirect, but the above statement ignores it and prepends the base url. So, my

only choice is to redirect with full urls and for what purpose is the 'prependBase' option then ?

I don't really know what is the purpose of "prependBase" here, but redirection using absolute URLs is the correct behavior.

Quote from Wikipedia: http://en.wikipedia.org/wiki/URL_redirection

According to the HTTP standard, the Location header must contain an absolute URI. When redirecting from one page to another within the same site, it is a common mistake to use a relative URI. As a result most browsers tolerate relative URIs in the Location header, but some browsers display a warning to the end user.




<Prev in Thread] Current Thread [Next in Thread>