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

This commit is contained in:
Javier Calvarro Nelson 2020-05-08 22:17:25 +02:00 committed by GitHub
parent 6995dc95d0
commit a67c14f5b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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.