Store the referral var in a property so it can be accessed during template_redirect. #423
Merge branch 'issue/423'