[SPA] Fix register/profile paths (#21625)
This commit is contained in:
parent
6995dc95d0
commit
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
|
// 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
|
// browser they get sent back to where it was on the app instead of to an endpoint on this
|
||||||
// component.
|
// component.
|
||||||
const redirectUrl = `${window.location.origin}${apiAuthorizationPath}`;
|
const redirectUrl = `${window.location.origin}/${apiAuthorizationPath}`;
|
||||||
window.location.replace(redirectUrl);
|
window.location.replace(redirectUrl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -118,7 +118,7 @@ export class Login extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
redirectToApiAuthorizationPath(apiAuthorizationPath) {
|
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
|
// 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
|
// browser they get sent back to where it was on the app instead of to an endpoint on this
|
||||||
// component.
|
// component.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue