Regarding the redirect bug...I got this and it's easily fixed....
I think it's a new 1.5.9 quirk in JURI::root()
Why it happens is...if anyone tries to redirect to a blank URL then Joomla core application redirect sends you back to the JURI::base. Normally this wouldn't be an issue BUT if Jsecure does this then you end up straight back at....Jsecure which then redirects you to a blank and so on and on.
Therefore whatever Jsecure does it must never try and redirect to a blank.
TO fix this edit the ..plugins/system/jsecure.php and add the following,
| Code: |
if (strlen($path) == 0 ) {
$path = "/";
}
|
just before $app =& JFactory::getApplication(); and $app->redirect($path);
Obviously that checks what path you created and if it's blank then send to the '/' path. If you look at the application.php redirect method then if it sees the '/' (in $url[0]) then it fixes it up for you to make a nice URL.
Why this doesn't work right on some sites verses others is that JURI:root() will actually return a BLANK not a slash in some cases (I have noticed this now on 1.5.9 which I upgraded 3 sites yesterday).
Also in the initial $path .= you might want to remove the '.' in the '.=' where path is first used i.e.
| Code: |
$path = $params->get('options') == 1 ? JURI::root(true).'/'.$params->get('custom_path') : JURI::root(true);
|
I did log that bug but no developer has replied to my thread.