Stop re-writing browser history for login()
and register()
(#19525)
Closes #19543
This commit is contained in:
parent
58c4fa4139
commit
e217644ff4
1 changed files with 2 additions and 2 deletions
|
@ -1321,7 +1321,7 @@ function Keycloak (config) {
|
|||
if (!type || type == 'default') {
|
||||
return {
|
||||
login: function(options) {
|
||||
window.location.replace(kc.createLoginUrl(options));
|
||||
window.location.assign(kc.createLoginUrl(options));
|
||||
return createPromise().promise;
|
||||
},
|
||||
|
||||
|
@ -1331,7 +1331,7 @@ function Keycloak (config) {
|
|||
},
|
||||
|
||||
register: function(options) {
|
||||
window.location.replace(kc.createRegisterUrl(options));
|
||||
window.location.assign(kc.createRegisterUrl(options));
|
||||
return createPromise().promise;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue