diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-24 11:09:17 +0100 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-11-24 11:09:17 +0100 |
commit | e956bd109467c7ef43fb26ab4883af9802b79eb1 (patch) | |
tree | 5614fd63e2876188be5f8de23020c585a6603414 /core/js | |
parent | 49ad10cfd0f2572dba6bc6101b0b75a55ed352f1 (diff) | |
parent | 0fa8b449b21d2e2d5875c8300b86e8f7740f7598 (diff) | |
download | nextcloud-server-e956bd109467c7ef43fb26ab4883af9802b79eb1.tar.gz nextcloud-server-e956bd109467c7ef43fb26ab4883af9802b79eb1.zip |
Merge pull request #12359 from owncloud/fix-redirect-url-for-password-change
Use `/` as redirect location if webroot is set to an empty value
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/lostpassword.js | 6 |
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){ |