Skip to content

Commit

Permalink
Web.Navigation.load doc example update
Browse files Browse the repository at this point in the history
  • Loading branch information
lue-bird committed Dec 3, 2023
1 parent 30abfb0 commit 785d7e9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Web/Navigation.elm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,15 @@ This always results in a page load, even if the provided URL is the same as the
gotoElmWebsite : Web.Interface state_
gotoElmWebsite =
Web.Navigation.load "https://elm-lang.org"
Web.Navigation.load
-- https://elm-lang.org/
{ protocol = Url.Https
, host = "elm-lang.org"
, port_ = Nothing
, path = "/"
, query = Nothing
, fragment = Nothing
}
Replacement for [`Browser.Navigation.load`](https://dark.elm.dmy.fr/packages/elm/browser/latest/Browser-Navigation#load)
Expand Down

0 comments on commit 785d7e9

Please sign in to comment.