Merge pull request #12359 from owncloud/fix-redirect-url-for-password-change
Use `/` as redirect location if webroot is set to an empty value
This commit is contained in:
commit
e956bd1094
|
@ -112,7 +112,11 @@ OC.Lostpassword = {
|
|||
},
|
||||
|
||||
redirect : function(msg){
|
||||
if(OC.webroot !== '') {
|
||||
window.location = OC.webroot;
|
||||
} else {
|
||||
window.location = '/';
|
||||
}
|
||||
},
|
||||
|
||||
resetError : function(msg){
|
||||
|
|
Loading…
Reference in New Issue