Check for request.referrer before redirecting
Version 0.1.4