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

RouteUrl.Builder.replacePath produces JS error #36

Open Beny406 opened 6 years ago

Beny406 commented 6 years ago

When RouteUrl.Builder.replacePath is given a list of at least two strings, where the first item is empty, JS error is produced. app.js:13496 Uncaught DOMException: Failed to execute 'pushState' on 'History': A history state object with URL 'http://something/' cannot be created in a document with origin 'http://localhost:8080' and URL 'http://localhost:8080/'