mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-03 13:14:30 +03:00
Dont strip final '/'
This commit is contained in:
parent
9921b6bd73
commit
cb8a8e98ed
|
@ -29,6 +29,6 @@ def get_breadcrumbs(url):
|
||||||
# Drop trailing non-slash off the end and continue to try to resolve more breadcrumbs
|
# Drop trailing non-slash off the end and continue to try to resolve more breadcrumbs
|
||||||
return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list, prefix)
|
return breadcrumbs_recursive(url[:url.rfind('/') + 1], breadcrumbs_list, prefix)
|
||||||
|
|
||||||
prefix = get_script_prefix()
|
prefix = get_script_prefix().rstrip('/')
|
||||||
url = url[len(prefix):]
|
url = url[len(prefix):]
|
||||||
return breadcrumbs_recursive(url, [], prefix)
|
return breadcrumbs_recursive(url, [], prefix)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user