Don't redirect trailing slashes

This commit is contained in:
2023-12-20 21:27:06 +11:00
parent e484366d42
commit 019b1bab4b

View File

@@ -15,7 +15,7 @@ use Rack::Session::Cookie,
require "rack/rewrite"
use Rack::Rewrite do
# remove trailing slashes
r302 %r{(/.*)/(\?.*)?$}, "$1$2"
# r302 %r{(/.*)/(\?.*)?$}, "$1$2"
end
run Hanami.app