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 from sub-sites itself to the root site list.
So I am trying to store the sub-sites url when saving values using default
newform.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 WebPart but don't want this approach. Using WebPart I get the previous visited URL but in event receiver value is null.
Below is the code for getting URL:
Any solutions would be helpful here. Thanks!