Commit 2e9433c4 by Torkel Ödegaard

fix: fixed redirect after save, fixes #10946

parent 497132c4
......@@ -77,8 +77,11 @@ export class DashboardSrv {
postSave(clone, data) {
this.dash.version = data.version;
if (data.url !== this.$location.path()) {
this.$location.url(locationUtil.stripBaseFromUrl(data.url)).replace();
const newUrl = locationUtil.stripBaseFromUrl(data.url);
const currentPath = this.$location.path();
if (newUrl !== currentPath) {
this.$location.url(newUrl).replace();
}
this.$rootScope.appEvent('dashboard-saved', this.dash);
......
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