Commit 39238c19 by Torkel Ödegaard

fix: folder redirect after creation

parent db1423ee
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));
});
}
......
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