Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexErrors from breadcrumbs.py line 95 #569

Open
mcfletch opened this issue Jun 3, 2020 · 1 comment
Open

IndexErrors from breadcrumbs.py line 95 #569

mcfletch opened this issue Jun 3, 2020 · 1 comment

Comments

@mcfletch
Copy link
Contributor

mcfletch commented Jun 3, 2020

breadcrumbs[-1].url = path

Has an assumption that breadcrumbs(...) will return a non-empty list. However it seems that certain crawlers are getting to the archive pages without a breadcrumb trail. I believe it should be sufficient, in this case to simply check:

if breadcrumbs:

before the call to set the url on the last breadcrumb.

@elarroba
Copy link

elarroba commented Jan 7, 2022

@mcfletch

I just created a fork of this project and updated the code to work with modern versions of Django (including 4.0+).

Please visit https://github.com/arrobalytics/django-blog-zinnia if you want to contribute. Don't forget to star the project to show your support.

Visit the new site https://www.djangoblogzinnia.com for documentation, demo and other resources.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants