From 39238c192d5f6fafc9fb7f3a1e53afbd16bd403a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Wed, 7 Feb 2018 15:32:30 +0100 Subject: [PATCH] fix: folder redirect after creation --- public/app/features/dashboard/create_folder_ctrl.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/create_folder_ctrl.ts b/public/app/features/dashboard/create_folder_ctrl.ts index 0c582164e2b..4b74d290e34 100644 --- a/public/app/features/dashboard/create_folder_ctrl.ts +++ b/public/app/features/dashboard/create_folder_ctrl.ts @@ -1,4 +1,5 @@ import appEvents from 'app/core/app_events'; +import locationUtil from 'app/core/utils/location_util'; export class CreateFolderCtrl { title = ''; @@ -19,7 +20,7 @@ export class CreateFolderCtrl { return this.backendSrv.createDashboardFolder(this.title).then(result => { appEvents.emit('alert-success', ['Folder Created', 'OK']); - this.$location.url(result.meta.url); + this.$location.url(locationUtil.stripBaseFromUrl(result.meta.url)); }); }