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
A global middleware that is not affected by fresh is required.
The handler defined in the routes/_middleware.ts file is not global middleware and will be affected by the trailingSlashEnabled redirect from fresh.
marvinhagemeister
changed the title
A global middleware that is not affected by fresh is required. The handler defined in the routes/_middleware.ts file is not global middleware and will be affected by the trailingSlashEnabled redirect from fresh.
Add a way to disable trailing slash logic
Mar 1, 2024
Closing as this is resolved in the upcoming Fresh 2 release. There, by default Fresh will leave the URL as is and devs can opt in to always appending a trailing slash or always removing it via a middleware:
A global middleware that is not affected by fresh is required.
The handler defined in the routes/_middleware.ts file is not global middleware and will be affected by the trailingSlashEnabled redirect from fresh.
https://deno.land/x/[email protected]/src/server/context.ts?source#L175
https://deno.land/x/[email protected]/src/server/context.ts?source#L237
The text was updated successfully, but these errors were encountered: