[SPA] Fix register/profile paths (#21625)

This commit is contained in:
Javier Calvarro Nelson 2020-05-08 22:17:25 +02:00 коммит произвёл GitHub
Родитель 6995dc95d0
Коммит a67c14f5b0
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -118,7 +118,7 @@ export class LoginComponent implements OnInit {
// It's important that we do a replace here so that when the user hits the back arrow on the
// browser they get sent back to where it was on the app instead of to an endpoint on this
// component.
const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;
const redirectUrl = `${window.location.origin}/${apiAuthorizationPath}`;
window.location.replace(redirectUrl);
}
}

Просмотреть файл

@ -118,7 +118,7 @@ export class Login extends Component {
}
redirectToApiAuthorizationPath(apiAuthorizationPath) {
const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;
const redirectUrl = `${window.location.origin}/${apiAuthorizationPath}`;
// It's important that we do a replace here so that when the user hits the back arrow on the
// browser they get sent back to where it was on the app instead of to an endpoint on this
// component.