I have a root site list which I am displaying on several sub-sites using CQWP based on a custom filter and entering the list values frmfrom sub-sites itself to the root site list.
So I am trying to store the sub-sites url when saving values using default newform.aspxnewform.aspx
on the list column. I tried storing url value using workflow,event receiver but not able to store as required. I can achieve this using custom web-partWebPart but don't want this approach. Using webpartWebPart I get the previous visited URL but in event receiver value is null.
belowBelow is the code for getting URL:
HttpContext.Current.Request.UrlReferrer.AbsolutePath
Any solutions would be helpful here. Thanks!