mercredi 25 novembre 2015

How can you modify the url on a one page website? [duplicate]

This question already has an answer here:

So I have my site here: http://ift.tt/1kqe8RW and I want it where when I click on a project it adds a slug to the url so when I click on project A on the homepage it becomes http://ift.tt/1POelv5. The way my site is currently built, it all resides in one html file.

What would I have to do, and rebuilding isn't really an option for me at this point, to make this work? Javascript? The UX of the site right now, it needs the project name because if you click on a project and want to go to the homepage I'd hit backspace, but in this case it won't do nothing forcing the user to click on "Back to Projects".




Aucun commentaire:

Enregistrer un commentaire