{ href = "http://localhost:8080/test?a=b&c=d", host = "localhost:8080", hostname = "localhost", protocol = "http:", origin = "http://localhost:8080", port_ = "8080", pathname = "/test", search = "?a=b&c=d", hash = "", username = <internal structure>, password = <internal structure> }
{ href = "http://localhost:8080/#test?a=b&c=d", host = "localhost:8080", hostname = "localhost", protocol = "http:", origin = "http://localhost:8080", port_ = "8080", pathname = "/", search = "", hash = "#test?a=b&c=d", username = <internal structure>, password = <internal structure> }
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cheers
-magnus
import Html exposing (Attribute, Html, a)import Html.Events exposing (onWithOptions, defaultOptions)import Model exposing (Msg(..))import Json.Decode as Json
link : String -> List (Attribute Msg) -> List (Html Msg) -> Html Msglink route attributes children = let clickHandler = onWithOptions "click" defaultOptions <| Json.succeed <| NavigateTo route
attrs = clickHandler :: attributes in a attrs childrena [ onClick (NavMsg1 param1), class "some class", title "Do something" ] [ text "Do something" ]
a [ onClick (NavMsg2), title "Do something else" ] [ text "Dom something else" ]
a [ onClick (NavMsg3 param2 param3), class "is-disabled", title "Delete thing" ] [ text "Delete thing" ]
link ("/something?param1=" ++ param1) [ class "some class", title "Do something" ] [ text "Do something" ]
link ("/home") [ title "Do something else" ] [ text "Dom something else" ]
link ("/deletePage?param2=" ++ param2 ++ "¶m3=" ++ param3) [ class "is-disabled", title "Delete thing" ] [ text "Delete thing" ]Yep, it's standard complaint as Nick said. This behavior also agrees with the routing behavior for most JS client stacks I've used as well.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.
--
--
I don't disagree with anything your wrote there, but I still have this problem to deal with now. The path of least resistance happens to also be the path that uses query strings that are technically correct (nevermind about technically correct URLs).If a library comes along and makes parsing hashes that contain semantic query strings easy, then I'll consider using that library. At the moment the solution I have now contains a very small workaround and has unblocked me from being able to use query string parameters.
--
Navigate to http://localhost:8080/#test?a=b&c=d
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss...@googlegroups.com.