I noticed that .net/javascript adding up “servername” to all the dynamic URLs.
Googling results up to add "http" / "https" before the URL string. but I can’t do that. As it can be a URL of logfile, to some other pages of the site.
Here is what I am trying to achieve : –
$("#someid").html("<a href='" + myURL + "' target='_blank' class='myclass'>" + myURL+ "</a>");
now if myURL= "\\\logfile\mylog.txt"
then the link which I am getting is : –
"servername:8080/\\\logfile\mylog.txt"
How to remove servername from this.
Would this work?
I never really use jQuery, so maybe some syntax is incorrect, but you’ll get the idea no?