[v9.5.x] Navigation: Redirect to root page when switching organization (#66658)
Navigation: Redirect to root page when switching organization (#66655)
* just redirect to root when switching org
* remove old orgswitcher modal
(cherry picked from commit 90f0b1c6e2)
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
co-authored by
Ashley Harrison
parent
5e07346da9
commit
7f1a840f36
@@ -18,7 +18,7 @@ export function OrganizationSwitcher() {
|
||||
const onSelectChange = (option: SelectableValue<UserOrg>) => {
|
||||
if (option.value) {
|
||||
setUserOrganization(option.value.orgId);
|
||||
locationService.partial({ orgId: option.value.orgId }, true);
|
||||
locationService.push(`/?orgId=${option.value.orgId}`);
|
||||
// TODO how to reload the current page
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user