Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sbefort opened this issue May 15, 2017 · 2 comments
Closed

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

sbefort opened this issue May 15, 2017 · 2 comments
Labels

Comments

@sbefort
Copy link

sbefort commented May 15, 2017

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)
@sebastianmacias
Copy link

I believe this is outside the scope of nuxt and directly depends on the configuration of the static host you are using. In your case AWS S3. Check out this: https://forums.aws.amazon.com/thread.jspa?threadID=168000

@lock
Copy link

lock bot commented Nov 5, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Nov 5, 2018
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants