I'm trying to get around an issue for a customer that have a site developed by a previous developer. The following is the line of code causing the issue:
args.AddParam("REFERER","",Request.UrlReferrer.ToString());
Therefore if you navigate directly to this page using the URL, it returns a null exception error. I know that to fix this the code should first be checking if UrlReferrer is set to null, however I am trying to find a way around this problem without having to change any source. Any help would be appreciated