rgrempel / elm-route-url

Router for single-page-apps in Elm
http://package.elm-lang.org/packages/rgrempel/elm-route-url/latest
MIT License
196 stars 16 forks source link

UrlChange to empty hash #26

Open rgrempel opened 7 years ago

rgrempel commented 7 years ago

Apparently, a UrlChange to an empty hash doesn't work as expected ... you need to add a space afterwards. E.g. instead of

UrlChange NewEntry "#"

... you need ...

UrlChange NewEntry "# "

I should see if this can be fixed.

rgrempel commented 7 years ago

I should also take a look at https://github.com/Gizra/drupal-elm-starter/pull/39 in this context -- there is something about the idiom for dealing with empty hashes that I should at least document.