fix: fixed bug with redirect after new dashboard saved, related to buggy angularjs location path/url and base href, fixes #10817

This commit is contained in:
Torkel Ödegaard
2018-02-07 14:10:23 +01:00
parent 17cbd9d6b4
commit 541b0a0ca1
4 changed files with 5 additions and 5 deletions

View File

@@ -23,8 +23,7 @@ export class LoadDashboardCtrl {
if (!($routeParams.type === 'script' || $routeParams.type === 'snapshot') && !$routeParams.uid) {
backendSrv.get(`/api/dashboards/db/${$routeParams.slug}`).then(res => {
if (res) {
const url = locationUtil.stripBaseFromUrl(res.meta.url);
$location.path(url).replace();
$location.path(locationUtil.stripBaseFromUrl(res.meta.url)).replace();
}
});
return;