mirror of
https://github.com/andwati/zitadel.git
synced 2026-10-30 02:52:16 +00:00
fix(console): keep current url after org switch (#7118)
Co-authored-by: Max Peintner <[email protected]>
This commit is contained in:
co-authored by
Max Peintner
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 {
|
||||
|
||||
Reference in New Issue
Block a user