Hi,
I ran into an issue in DW9. My goal is to get:
- Relative path (unfriendly url)
i.e. "/Default.aspx?ID=1&q=search-text" - Relative path (friendly url)
i.e. "/mypage?q=search-text"
The problem is that I feel I am getting the wrong values and/or not doing it the best/proper way. Can anyone validate this for me?
- Dynamicweb.Context.Current.Request.RawUrl
but despite being RawUrl I get something like this - /my-account/latest-orders?CCOrderByField69=Id&CCSortOrder69=Asc
I could we just get it using Dynamicweb.Context.Current.Request.Url.PathAndQuery
- Pageview.GlobalTags.GetTagByName("Global:Pageview.Url").Value
but how would I get it without using GlobalTags? - essentially what I need is what RawUrl is currently rendering but it sounds wrong to use that property
Best Regards,
Nuno Aguiar