Hi, is there a way in which i could obtain the request's URL inside an xslt macro. I don't want to use umbraco.library:niceUrl ($currentPage/@id) as it won't work in the case where i redirect to a page using an internalRedirect.
I can obtain this value on my template using <% Response.Write(Request.Url);%> however trying to pass in a value like the following does not seem to work. Snippet
Could someone tell me if I'm going about this the right way. Is there a more direct way of obtaining this value using umbraco variables itself? Thanks in advance!
Getting the current URL of the request into xslt
Hi, is there a way in which i could obtain the request's URL inside an xslt macro. I don't want to use umbraco.library:niceUrl ($currentPage/@id) as it won't work in the case where i redirect to a page using an internalRedirect.
I can obtain this value on my template using <% Response.Write(Request.Url);%> however trying to pass in a value like the following does not seem to work. Snippet
<umbraco:Macro currentURL="<% (Request.Url);%>" runat="server" ID="Macro1" Alias="foo"></umbraco:Macro>
Could someone tell me if I'm going about this the right way. Is there a more direct way of obtaining this value using umbraco variables itself? Thanks in advance!
Try this from xslt:
That might work, not sure how it handles an internal redirect tho.
is working on a reply...