mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix redirect to panel when using an outdated dashboard slug (#12901)
This commit is contained in:
committed by
Torkel Ödegaard
parent
1c185ef8d8
commit
39669e5002
@@ -34,7 +34,9 @@ export class LoadDashboardCtrl {
|
||||
const url = locationUtil.stripBaseFromUrl(result.meta.url);
|
||||
|
||||
if (url !== $location.path()) {
|
||||
// replace url to not create additional history items and then return so that initDashboard below isn't executed multiple times.
|
||||
$location.path(url).replace();
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user