Home

Issue: 721

How to get rid of trailing forward slashes after nuxt generate?

[issue link]

When I use nuxt generate, dynamic links with an index.vue in the route’s last folder creates a link like this:

https://mydomain.com/mypath/index.html

After deploying to S3, there is a redirect if the trailing forward slash is missing after mypath/. So https://mydomain.com/mypath redirects to https://mydomain.com/mypath/.

Is there any way around this, or is this a necessary evil of static sites? Thanks.

This question is available on Nuxt.js community (#c616)