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
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Im trying to npm run preview my app with server actions in the client script tag. I have trailingSlash: "always" seted in my config and the problem is when i try to invoke action, node createStaticHandler doesnt pass any url without / at the end and returning 301 for this request.
Request examples with trailingSlash: "always":
If i remove trailingSlash: "always" actions works fine
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Im trying to
npm run previewmy app with server actions in the client script tag. I havetrailingSlash: "always"seted in my config and the problem is when i try to invoke action, nodecreateStaticHandlerdoesnt pass any url without/at the end and returning 301 for this request.Request examples with
trailingSlash: "always":If i remove
trailingSlash: "always"actions works fineRequest examples without
trailingSlash: "always":What's the expected result?
Not to get this behavior
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-mmkpqs?file=src%2Fpages%2Findex.astro
Participation