elm / url

Build and parse URLs. Useful for HTTP and "routing" in single-page apps (SPAs)
https://package.elm-lang.org/packages/elm/url/latest/
BSD 3-Clause "New" or "Revised" License
75 stars 43 forks source link

Allow parsing the complete 'pathname' at once #9

Open rl-king opened 6 years ago

rl-king commented 6 years ago

What

Parse a complete pathname with all segments at once. The requested feature is implemented in this fork here : http://package.elm-lang.org/packages/terezka/url-parser/1.0.0/UrlParser#any

Why

Our clients are able to define custom paths for the pages they create. Which means they could write something like /this/random/path/1/. Having the ability to accept that complete path and still allow for parsing queryParams will prevent workarounds that don't make full use of this package.

Note

We're having this issue in evancz/url-parser but as this looks to become the next version of that I'm posting this here.