X-Git-Url: https://git.sommitrealweird.co.uk/sommitrealweird.git/blobdiff_plain/c939dde77d9b8e0e4256f0f16e99206f55908288..21c466b2004e4c80e88de3e53b41c8e03f7f3d79:/sommitrealweird/bpcms/context_processors.py?ds=inline diff --git a/sommitrealweird/bpcms/context_processors.py b/sommitrealweird/bpcms/context_processors.py index 3668ab0..a78976d 100644 --- a/sommitrealweird/bpcms/context_processors.py +++ b/sommitrealweird/bpcms/context_processors.py @@ -101,7 +101,10 @@ def content_submenu(request): } def content_breadcrumb(request): - breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},] + if settings.BPCMS_ROOT == "/": + breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': "Home"}] + else: + breadcrumb = [{'url': settings.BPCMS_ROOT, 'title': settings.BPCMS_ROOT},] # find where we are in the tree first folderpath = request.path folderpath = re.sub(u'^%s' %(settings.BPCMS_ROOT), '', folderpath)