Please sign in to comment.
Added support for HTML5 History API
Added support for configure option html5history and related browser side implementation. With this option routing can use pretty URIs instead of the hash URIs. It's worth to notice that switching the method most likely requires changes also to backend since the browser will, upon initial page load, ask for the URI it is loading instead of the service index (e.g. yourhost.com/users/1). There is a bug in Chrome which causes it to trigger onpopstate event when performing initial page load. Since the event handler must be called upon init manually to ensure correct content, the bug would cause two handler calls in Chrome. Now the handler is set in a setTimeout in order to avoid (most) double calls in Chrome. See Chrome bug for reference: http://code.google.com/p/chromium/issues/detail?id=63040
- Loading branch information...
Showing with 55 additions and 13 deletions.