Browse Source

Merge pull request #2515 from julionav/enchancement/do-not-keep-in-history-renamed-page

UX Enhancement: Do not keep in history page that has just been renamed
Tienson Qin 4 years ago
parent
commit
fbd5ea9108
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main/frontend/handler/page.cljs

+ 1 - 0
src/main/frontend/handler/page.cljs

@@ -405,6 +405,7 @@
 
 
                   ;; Redirect to the new page
                   ;; Redirect to the new page
                   (route-handler/redirect! {:to :page
                   (route-handler/redirect! {:to :page
+                                            :push false
                                             :path-params {:name (string/lower-case new-name)}})
                                             :path-params {:name (string/lower-case new-name)}})
 
 
                   (notification/show! "Page renamed successfully!" :success)
                   (notification/show! "Page renamed successfully!" :success)