Commit 826dfcea by Torkel Ödegaard Committed by GitHub

fix: fixed home dashboard redirect issue when behind reverse proxy, fixes #12429 (#13135)

parent 5c0fbbf7
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment