juxt / bidi

Bidirectional URI routing
MIT License
991 stars 92 forks source link

Add support for HTML5 mode to router #172

Closed telekid closed 6 years ago

telekid commented 6 years ago

This pull request adds support for HTML5 mode to the router.

The API change is small. start-router! now takes an additional named argument, mode, which defaults to :legacy but may be optionally set to :html5. Since :legacy is the default, this should not be a breaking change.

In a future major version release, it may be prudent to change the default to :html5, since most new SPAs seem to be taking advantage of HTML5 mode.