Jelajahi Sumber

fix: recursive alias redirect

Tienson Qin 1 Minggu lalu
induk
melakukan
260f6511f0
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/main/frontend/handler/route.cljs

+ 1 - 1
src/main/frontend/handler/route.cljs

@@ -89,7 +89,7 @@
                     (and (ldb/built-in? page) (ldb/private-built-in-page? page))))
          (notification/show! "Cannot go to an internal page." :warning)
          (if-let [source (and (not ignore-alias?) (db/get-alias-source-page (state/get-current-repo) (:db/id page)))]
-           (redirect-to-page! (:block/uuid source) opts)
+           (redirect-to-page! (:block/uuid source) (assoc opts :ignore-alias? true))
            (do
            ;; Always skip onboarding when loading an existing whiteboard
              (when-not new-whiteboard? (state/set-onboarding-whiteboard! true))