Posted on 30/06/2015 14:40:00
Hi Rune
If you output your link to <a href="Default.aspx?ID=123"> Dynamicweb will rewrite the output to /Download before the page is sent. That is a configuration in MC->Urls section.
If you do something like <scritp>var link = "Default.aspx?ID=123";</script> and use that somehow, Dynamicweb will do a redirect. You can change this hacky by reading the link from an a-tag using a JS dom selector.
If your template is Razor, you can use Dynamicweb.Frontend.SearchFriendlyUrls.GetFriendlyUrl(link)