Skip to content

Comments

Warn against trailing slashes in router prefixes in documentation#9861

Merged
browniebroke merged 4 commits intoencode:mainfrom
0Nafi0:main
Feb 21, 2026
Merged

Warn against trailing slashes in router prefixes in documentation#9861
browniebroke merged 4 commits intoencode:mainfrom
0Nafi0:main

Conversation

@0Nafi0
Copy link
Contributor

@0Nafi0 0Nafi0 commented Dec 31, 2025

Many developers subconsciously add trailing slashes to router prefixes because of standard Django path() habits. This leads to broken URLs (double slashes) or 404s. Adding this warning to the ViewSet documentation helps prevent this common mistake.

0Nafi0 and others added 3 commits December 31, 2025 20:21
Added warning about trailing slashes in viewset prefixes.
Update viewsets documentation with trailing slash warning
@browniebroke browniebroke changed the title docs: warn against trailing slashes in router prefixes Warn against trailing slashes in router prefixes in documentation Feb 21, 2026
browniebroke
browniebroke previously approved these changes Feb 21, 2026
@browniebroke browniebroke merged commit 04b0d7f into encode:main Feb 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants