Fixed minor bug in SPA demo (browser history)