aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/js/lostpassword.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js
index 35173fd3d33..294a9d8c1cf 100644
--- a/core/js/lostpassword.js
+++ b/core/js/lostpassword.js
@@ -112,7 +112,11 @@ OC.Lostpassword = {
},
redirect : function(msg){
- window.location = OC.webroot;
+ if(OC.webroot !== '') {
+ window.location = OC.webroot;
+ } else {
+ window.location = '/';
+ }
},
resetError : function(msg){