Fix font redirection

This commit is contained in:
2024-02-17 09:45:28 +11:00
parent 0e02c6768f
commit b809b132d3

View File

@@ -16,7 +16,7 @@ require "rack/rewrite"
use Rack::Rewrite do
# remove trailing slashes
r302 %r{(/.*)/(\?.*)?$}, "$1$2"
rewrite %r{/fonts/(.*)?$}, "/assets/$1"
r302 %r{/fonts/(.*)?$}, "/assets/$1"
end
require "adamantium/middleware/header_fix"