neon-jungle / wagtail-schema.org

Schema.org JSON-LD tags for Wagtail sites
BSD 2-Clause "Simplified" License
70 stars 17 forks source link

Site instance no longer available on request object since Wagtail 2.9 #8

Closed andrewebdev closed 4 years ago

andrewebdev commented 4 years ago

Wagtail 2.9 requires a site lookup when required in the template. So the default use of the template tag without specifying site raises a error.

The way for me to get around this is {% ld_for_site page.get_site %}, so I'm still able to do work at least. Logging the issue here for reference to anyone else running into this issue, but also for the devs to have a look at updating for latest wagtail releases ;)