How to handle query parameters in prod environment ?

Hello everyone !

Here is the context:
I use Nuxt3 with Vue3. When doing using the command nuxi dev, my query params are well handled.
Here an example of a valid request in local env: http://localhost:8000/foo/bar/test?param=value.
So when everything is fine, I build my app and send it to a S3 Bucket with the option "Static Website Hosting".

And now comes the problem: when I call the same request, it redirects me to /foo/bar/test/ for reasons I don't understand. The only way for me to make it possible is to call https://domain.foz/foo/bar/test/index.html?param=value and now everything works fine almost fine (query parameters are just ignored).

In a way, I think that having this URL is not a problem in itself. There's no security problem or anything, and the end user certainly does not care about the format of the URL (am I wrong?). But it is a problem to me because I have a different behavior in different environments, making the transition more complex.

Has anyone already had this problem? And knows how to solve it?

Thanks for your time.

Note: I use Route53 for the DNS, CloudFront as a CDN and S3 to storage the built application.
Was this page helpful?