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.
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.