nuxt icon indicating copy to clipboard operation
nuxt copied to clipboard

Can only visit url with trailing slash once

Open sprucify opened this issue 8 months ago • 0 comments

Today I discovered that my Nuxt 3 PWA app redirects mysite.com/faq/ to mysite.com Without a trailing slash the faq page is perfectly served.

After playing around with trailingSlash: false inside nuxt.config.ts and nginx setttings I found out that when I visit mysite.com/faq/ in incognito mode, it works once. The second time it fails. The page is probably served out of the serviceworker?

sprucify avatar Jun 18 '24 22:06 sprucify