Replies: 1 comment
-
I can't find |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
The
standalone
mode of@astrojs/node
currently always appends a forward slash at the end of pages URLs. It would be great to have this as optional, for users who prefer to have their URLS not ending with a slash.Proposed change
Current situation
A function
appendForwardSlash
is called to append slashes to all URLs (inside standalone.ts).To-be situation
trailingSlash
configuration option is added to the node adapter (to be determined: accepted values: boolean, or'always' | 'never' | 'ignore'
like in the dev server?)appendForwardSlash
is only called if the option is activeRead also
#305 outlines a related issue where sitemaps point to a URL causing a 301 redirect, instead of the suitable location.
Beta Was this translation helpful? Give feedback.
All reactions