зеркало из https://github.com/dotnet/aspnetcore.git
[SPA] Fix register/profile paths (#21625)
This commit is contained in:
Родитель
6995dc95d0
Коммит
a67c14f5b0
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче