canceraiddev/elm-pages/1.0.0

NOTE: the latest version is 1.1.3

Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/CancerAidDev/elm-pages exists but has no tag 1.0.0; Software Heritage has not archived the repo; no fork with tag 1.0.0 found (60 same-name repos checked); no cached copy. Use another version.

Details

Pages.Url

Some of the elm-pages APIs will take internal URLs and ensure that they have the canonicalSiteUrl prepended.

That's the purpose for this type. If you have an external URL, like Pages.Url.external "https://google.com", then the canonicalUrl will not be prepended when it is used in a head tag.

If you refer to a local page, like Route.Index |> Route.toPath |> Pages.Url.fromPath, or Pages.Url.fromPath

type Url
external : String -> Url
toAbsoluteUrl : String -> Url -> String
toString : Url -> String