I have a javascript code on index.php calling a page like this :
id = 5;
var url = 'pages/pg/'+id+'/';
f.action = urlss.toLowerCase();
return true;
the problem is that when I am landing at that page and want to call again with a different ID id doesn't work , I must provide var url the entire path :
var url = 'mysite.com/pages/pg/'+id+'/';
is there a way to call it without http domaine ?