[Solved] How to create URLs with html5/dynamic site [closed]


What you could do to make unique URLs (without refreshing the page) is use

window.location.hash="#whatever";"

this will give you a URL that if the user shares then you will be able to parse and process to display the right product

however… from an SEO perspective this might not give exactly the result you want because the hash in the location will be ignored when Google/Bing indexes the page so you may also want to support the use of a querystring parameter (?product=whatever) though that will cause a page reload.

See Change the URL in the browser without loading the new page using JavaScript for more detail and other suggested solutions

solved How to create URLs with html5/dynamic site [closed]