So I have the following url:
https://example.com/page/foo
And I'm using pushstate like this:
window.history.pushState(window.location.href, null, 'product/'+data.name+'/'+data.item);
Now, the problem is that when it changes the url, it removes "foo" so the new url will be
https://example.com/page/product/product-name/123
and I don't want this, I want to keep the original url...and append the new stuff