From ab0c4e82d594c0099cdc8dfdd9b13b83491c28a0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 6 Nov 2015 14:07:19 +0530 Subject: [PATCH] [fix] [website] next-item --- frappe/website/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frappe/website/template.py b/frappe/website/template.py index 1ecaee362b..e14a8a4c01 100644 --- a/frappe/website/template.py +++ b/frappe/website/template.py @@ -130,10 +130,10 @@ def add_index(out, context): if context.relative_links: next_item.name = next_item.page_name or "" else: - if next_item and next_item.name[0]!="/": + if next_item and next_item.name and next_item.name[0]!="/": next_item.name = "/" + next_item.name - if next_item: + if next_item and next_item.name: if not next_item.title: next_item.title = "" html = ('

'\