Stop re-writing browser history for `login()` and `register()` (#19525)

Closes #19543
This commit is contained in:
Bunyamin Shabanov 2023-04-06 15:08:39 +03:00 committed by GitHub
parent 58c4fa4139
commit e217644ff4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
},