def redirect_request_processor(page, request):
    """
    Returns a ``HttpResponseRedirect`` instance if the current page says
    a redirect should happen.
    """
    target = page.get_redirect_to_target(request)
    if target:
        extra_path = request._feincms_extra_context.get("extra_path", "/")
        if extra_path == "/":
            return HttpResponseRedirect(target)
        logger.debug(
            "Page redirect on '%s' not taken because extra path '%s' present",
            page.get_absolute_url(),
            extra_path,
        )
        raise Http404()

    Returns a ``HttpResponseRedirect`` instance if the current page says
    a redirect should happen.
    
feincms/module/page/processors.py