Skip to content

Trailing slash redirect should retain the HTTP method#1820

Merged
duncanmcclean merged 1 commit into6.xfrom
cp-trailing-slashes
Feb 6, 2026
Merged

Trailing slash redirect should retain the HTTP method#1820
duncanmcclean merged 1 commit into6.xfrom
cp-trailing-slashes

Conversation

@duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Feb 6, 2026

While working on statamic/cms#13846, I noticed that axios requests in the Control Panel were 404'ing.

It turns out this was because Nginx was doing a 301 redirect instead of a 308, which retains the HTTP method from the initial request.

This PR updates the Apache/Nginx/IIS rules to respond with a 308 redirect.

@duncanmcclean duncanmcclean merged commit 68de7b3 into 6.x Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant