mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 21:17:23 +00:00
fix(console): keep current url after org switch (#7118)
Co-authored-by: Max Peintner <max@caos.ch>
This commit is contained in:
parent
c5bec35b1b
commit
46175b7cff
@ -265,7 +265,12 @@ export class AppComponent implements OnDestroy {
|
||||
}
|
||||
|
||||
public changedOrg(org: Org.AsObject): void {
|
||||
this.router.navigate(['/org']);
|
||||
// Reference: https://stackoverflow.com/a/58114797
|
||||
const currentUrl = this.router.url;
|
||||
this.router.navigateByUrl('/', { skipLocationChange: true }).then(() => {
|
||||
// We use navigateByUrl as our urls may have queryParams
|
||||
this.router.navigateByUrl(currentUrl);
|
||||
});
|
||||
}
|
||||
|
||||
private setLanguage(): void {
|
||||
|
Loading…
x
Reference in New Issue
Block a user