Hi,
I've found another issue with sendRedirect(). The problem is that makeUrl returns the url as /[base_url]/[alias].html
From what I understand the Location header requires the full url in order to work properly. This means that it requires the htttp:// portion as well
example:
// this will fail and cause a 404 error
header('Location: /[base_url]/[alias].html ');
// this will work
header('Location: http://domain.com/[base_url]/[alias].html ');
Tested on IIS 5, Windows XP using WebLogin Snippet
Here's the a quick fix:
Replace line 107 inside the sendRedirect function with:
// check if url has /$base_url
global $base_url,$site_url;
if (substr($url,0,strlen($base_url))==$base_url) {
// append $site_url to make it work with Location:
$url = $site_url.substr($url,strlen($base_url));
}
$header = 'Location: '.$url;
Please test to confirm.