You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to implement a search page that has a base path on /search.
The idea is that the page is accessible on the base /search and a query string can be read.
e.g. http://localhost:3000/search?q=test
The problem is that I always have a trailing slash, like the following example: http://localhost:3000/search/?q=test
Without entering the trailing slash I can't find the page and I get a 404 error.
I already add in the config the trailingSlash: 'never' option but it is ignored.
What version of
astro
are you using?1.6.5
Are you using an SSR adapter? If so, which one?
node
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
I'm trying to implement a search page that has a base path on /search.
The idea is that the page is accessible on the base
/search
and a query string can be read.e.g.
http://localhost:3000/search?q=test
The problem is that I always have a trailing slash, like the following example:
http://localhost:3000/search/?q=test
Without entering the trailing slash I can't find the page and I get a 404 error.
I already add in the config the trailingSlash: 'never' option but it is ignored.
Maybe related #5288
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-tnktw6
Participation
The text was updated successfully, but these errors were encountered: