Hello Craig,
The query parameters are removed in the
ProcessReferrer method (~\App_Code\Application\CMSAppBase.cs) using the following code:
string path = URLHelper.RemoveQuery(referrer.AbsoluteUri);
// Save the referrer value
CMSContext.CurrentUser.URLReferrer = path;
However, it is not recommended to modify it. You can instead take the
referrer.AbsoluteUri property and save it, for example, to a new cookie:
CookieHelper.SetValue("UrlReferrerWithQueryParams", referrer.AbsoluteUri, DateTime.Now.AddDays(1));
You can do so in the
ProcessReferrer method.
Then you should be able to access this value in the
ObjectEvents.Insert.After event with the help of this code:
string urlReferrerWithQueryParams = CookieHelper.GetValue("UrlReferrerWithQueryParams");
Best regards,
Michal Legen