From 826dfceac053340b1ca2b1f97616b3406b75ad78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 4 Sep 2018 15:42:10 +0200 Subject: [PATCH] fix: fixed home dashboard redirect issue when behind reverse proxy, fixes #12429 (#13135) --- public/app/routes/dashboard_loaders.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/routes/dashboard_loaders.ts b/public/app/routes/dashboard_loaders.ts index 74c9fe2235a..a14efd3c508 100644 --- a/public/app/routes/dashboard_loaders.ts +++ b/public/app/routes/dashboard_loaders.ts @@ -9,7 +9,8 @@ export class LoadDashboardCtrl { if (!$routeParams.uid && !$routeParams.slug) { backendSrv.get('/api/dashboards/home').then(function(homeDash) { if (homeDash.redirectUri) { - $location.path(homeDash.redirectUri); + const newUrl = locationUtil.stripBaseFromUrl(homeDash.redirectUri); + $location.path(newUrl); } else { const meta = homeDash.meta; meta.canSave = meta.canShare = meta.canStar = false;