'Returns True if the request is for a page handled by an apphook, but
is also the page it is attached to.
:return: Boolean'

def in_apphook_root(self):

    page = getattr(self.request, 'current_page', False)
    if page:
        language = get_language_from_request(self.request)
        return (self.request.path == page.get_absolute_url(language=language))
    return False
