From cb8a8e98ed42f5053b9752064aa8c4094ee5f754 Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 19 Sep 2012 18:48:59 +0100 Subject: Dont strip final '/' --- djangorestframework/utils/breadcrumbs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'djangorestframework') 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) -- cgit v1.2.3