chrisdiana / cms.js

Client-Side JavaScript Site Generator

Home Page:http://chrisdiana.github.io/cms.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use HTML5 History API instead of hash

filips123 opened this issue · comments

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/

I up for this too @filips123