From 4977c344aaaf5ca8a84d4b06e4501ba9c08ac197 Mon Sep 17 00:00:00 2001 From: loganhz Date: Tue, 12 Mar 2019 08:28:28 +0800 Subject: [PATCH] Fix the refresh issue when add ns https://github.com/rancher/rancher/issues/18809 --- app/authenticated/cluster/projects/new-ns/controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/authenticated/cluster/projects/new-ns/controller.js b/app/authenticated/cluster/projects/new-ns/controller.js index 4ea091229..8c9722922 100644 --- a/app/authenticated/cluster/projects/new-ns/controller.js +++ b/app/authenticated/cluster/projects/new-ns/controller.js @@ -19,7 +19,7 @@ export default Controller.extend(NewOrEdit, { let backTo = get(this, 'session').get(C.SESSION.BACK_TO) if (backTo) { - window.location.href = backTo; + this.transitionToRoute('authenticated.project.ns.index', get(this, 'addTo')); } else { this.transitionToRoute('authenticated.cluster.projects.index'); }