Checkout this middleware in lib-noir https://github.com/noir-clojure/lib-noir/blob/master/src/noir/util/middleware.clj#L70
On Thursday, July 25, 2013 9:08:50 PM UTC-4, Reginald Choudari wrote: > > Hello, I'm trying to figure out what is the best way in handling this > problem. > > Using Ring I have a handlers set to direct routes with relative URI paths > (e.g. "/", "./posts", "/about"). But I would like the URI to be > automatically redirected to "/posts/" and "/about/" with the trailing > slash, so that all my links and references work correctly. If the URI is > without the trailing slash, I'm sure you know what happens to all your > relative paths. > > Any efficient way of dealing with this? > > Thanks, > Reginald > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.