-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get/ Set value from/ to query string #5
Comments
(updated title) |
I took a quick look at this, and it turns out that it will be a little more complex than I realized. At the moment, elm-history provides access to http://www.apple.com/some/path?query=7#anchor ... elm-history will give us access to "/some/path" and "#anchor", but nothing else. If elm/package.elm-lang.org#124 gets accepted, then I can enhance elm-history so that it provides access to |
ping. Are you still in elm-land ? :) |
Ah, indeed, here I am! I have been a little distracted, but there has been progress in elm-history, as @liamcurry has contributed some code to get the full href in a signal. Though, now that I think about it some more, we'll actually need some code to set the full href as well, or at least as much of it as the HTML5 API allows. But that isn't hard -- I'll write something up for that now. Once that's done, I need to re-architect elm-route-hash a little so that the current method of parsing is just one option -- so people can get and set full URLs. |
I'm not sure what I was thinking ... the History module will already allow us to write the query string via |
👍 |
This will be implemented for elm-route-hash 2.0, for Elm 0.17. |
This is now available in the published version 2.0.0 of elm-route-url. |
Sometimes it makes more sense to have query strings mapped to the actions instead of actual arguments (e.g. when filtering search using faceted search)
The text was updated successfully, but these errors were encountered: