def get_site_root(context): """Returns the site root Page, not the implementation-specific model used. :rtype: `wagtail.wagtailcore.models.Page` """ return context['request'].site.root_page