chrisdiana / cms.js

Client-Side JavaScript Site Generator
http://chrisdiana.github.io/cms.js
MIT License
3.05k stars 287 forks source link

Use HTML5 History API instead of hash #80

Open filips123 opened 5 years ago

filips123 commented 5 years ago

You could use HTML5 History API instead of window.location.hash. It allows to change state, title and URL of page without reloading the page.

One problem is that pages aren't real so refreshing the page will probably land on an invalid URL. Is it possible to handle that?

Here is a demo: https://html5demos.com/history/

chrisdiana commented 5 years ago

I up for this too @filips123