stringa_base = "bla bla bla *id*";
myUrl = location.href;
nuovo_url = stringa_base.replace(/\*id\*/,myUrl);
location.href = nuovo_url;

Forse dovrai codificare il tutto... http://www.devguru.com/Technologies/...ef/escape.html

ciao