take care to empty breadcrumbs stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 23 Mar 2010 17:08:50 +0100
branchstable
changeset 4974 025a491bad0c
parent 4973 1e6536afa855
child 4975 35b0dd80dc06
take care to empty breadcrumbs
web/request.py
--- a/web/request.py	Tue Mar 23 17:06:05 2010 +0100
+++ b/web/request.py	Tue Mar 23 17:08:50 2010 +0100
@@ -290,7 +290,7 @@
                 breadcrumbs.append(self.url())
             else:
                 url = self.url()
-                if breadcrumbs[-1] != url:
+                if breadcrumbs and breadcrumbs[-1] != url:
                     breadcrumbs.append(url)
 
     def last_visited_page(self):