New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middle slash removed by "replace" #54
Comments
I have the same problem. Tried the code from PR #56 but it did not solve it. |
@philngo @Laptopmini Can you provide me with a |
Hi! I just created the pull request above (PR #64 ) which should fix the issue. The pull requests removes only leading and trailing slashes from the parent URL instead of removing all slashes. |
@Afnarel 's PR is now merged so it should be fixed now 👍 |
In an DRF router endpoint I'm seeing the following behavior:
Not sure exactly sure why slashes are being replaced on this line, but perhaps a
strip('/')
thanreplace('/','')
would be more appropriate, as that would preserve slashes in the middle, like I need.https://github.com/ekonstantinidis/django-rest-framework-docs/blob/9a85323c4147ec4ebb754a8b0373c956ee89b821/rest_framework_docs/api_endpoint.py#L1
Happy to make a PR
The text was updated successfully, but these errors were encountered: