I wish to simulate clicking on a link and redirecting using js, i do this with:
window.location
But how can I keep the current path:
mysite.com/article/page
And go to:
mysite.com/article/page/some-js-var
I know I can do:
window.href+'/'+myVar
Is there a better way?