Skip to content

Relative links #46

Description

@pravdomil

Assuming that my app runs at http://localhost/project/?foo=bar.
And I want to have link to homepage as ./.
I found no way how create that via Url.Builder.custom.

url/src/Url/Builder.elm

Lines 147 to 157 in 4e5ee03

rootToPrePath : Root -> String
rootToPrePath root =
case root of
Absolute ->
"/"
Relative ->
""
CrossOrigin prePath ->
prePath ++ "/"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions