diff --git a/modules/reitit-frontend/src/reitit/frontend.cljs b/modules/reitit-frontend/src/reitit/frontend.cljs index 5ff4f09a..dadbe54c 100644 --- a/modules/reitit-frontend/src/reitit/frontend.cljs +++ b/modules/reitit-frontend/src/reitit/frontend.cljs @@ -23,6 +23,8 @@ path (.getPath uri)] (if-let [match (or (r/match-by-path router path) (if-let [trailing-slash-handling (:trailing-slash-handling (r/options router))] + ;; TODO: Maybe the original path should be added under some key in match, + ;; so it is easy for user to see if trailing slash "redirect" happened? (if (str/ends-with? path "/") (if (not= trailing-slash-handling :add) (r/match-by-path router (subs path 0 (dec (count path)))))