I need to prepend window.location.href in place.
Use case: Expedite single-webpage tasks by actively updating the Address bar for the User.
UX:
Example: Original URI: http://domain1.tld1/default.htm Modified URI: https://subdomain.domain2.tld2/http://domain1.tld1/default.htm
Hours of fruitless searches and tweak fails of appending/swapping suggestions have me beat.
This should do what you're looking for:
javascript:window.location.href="https://subdomain.domain2.tld2/"+window.location.href