mlanthaler: Fixes problem that the login form tab is not shown when the (unneeded) BackURL parameter is used (see http://support.silverstripe.com/gsoc/ticket/23 for details).

(merged from branches/gsoc)


git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41892 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2007-09-15 01:25:07 +00:00
parent 31a9fbee3c
commit e741ecd2f8

View File

@ -733,7 +733,7 @@ showResponseAsSuccessMessage = function(response) {
*/
function onSessionLost() {
alert("You've been logged out of the server, so we're going to send you back to the log-in screen.");
window.location.href = baseHref() + 'Security/login?BackURL=' + encodeURIComponent(window.location.href);
window.location.reload(true);
}
var _CURRENT_CONTEXT_MENU = null;