aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2012-09-19 18:48:59 +0100
committerTom Christie2012-09-19 18:48:59 +0100
commitcb8a8e98ed42f5053b9752064aa8c4094ee5f754 (patch)
tree6f36ff0ec29bedb4029c0e9f8a4269dcf076add0
parent9921b6bd73c5256a3b65c2a5106717ce0fc8f0cf (diff)
downloaddjango-rest-framework-cb8a8e98ed42f5053b9752064aa8c4094ee5f754.tar.bz2
Dont strip final '/'
-rw-r--r--djangorestframework/utils/breadcrumbs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/utils/breadcrumbs.py b/djangorestframework/utils/breadcrumbs.py
index 71284380..ccee0081 100644
--- a/djangorestframework/utils/breadcrumbs.py
+++ b/djangorestframework/utils/breadcrumbs.py
@@ -29,6 +29,6 @@ def get_breadcrumbs(url):
# 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)
- prefix = get_script_prefix()
+ prefix = get_script_prefix().rstrip('/')
url = url[len(prefix):]
return breadcrumbs_recursive(url, [], prefix)