Skip to content

Relative links #46

@pravdomil

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 ++ "/"

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