Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative links #46

Open
pravdomil opened this issue Apr 6, 2021 · 0 comments
Open

Relative links #46

pravdomil opened this issue Apr 6, 2021 · 0 comments

Comments

@pravdomil
Copy link

pravdomil commented Apr 6, 2021

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

@pravdomil pravdomil changed the title There is no way Relative links Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant