mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
fix: use replace when redirecting to new url
This commit is contained in:
parent
57edf89033
commit
75cf9ae27d
@ -22,7 +22,7 @@ export class LoadDashboardCtrl {
|
||||
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {
|
||||
backendSrv.get(`/api/dashboards/db/${$routeParams.slug}`).then(res => {
|
||||
if (res) {
|
||||
$location.path(res.meta.url);
|
||||
$location.path(res.meta.url).replace();
|
||||
}
|
||||
});
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user