Fixing trailing slash issues with Pagefind and Caddy

How to fix