Skip to content

Commit

Permalink
fix: scrub query/fragment when setting base url (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 authored Jan 2, 2025
1 parent 2557666 commit 1ad20eb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/elm/Shared.elm
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,15 @@ init flagsResult route =
Effect.none

uiBaseURL =
route.url |> (\entryUrl -> Url.toString { entryUrl | path = "" })
route.url
|> (\entryUrl ->
Url.toString
{ entryUrl
| path = ""
, query = Nothing
, fragment = Nothing
}
)
in
( { -- FLAGS
velaAPIBaseURL = flags.velaAPI
Expand Down

0 comments on commit 1ad20eb

Please sign in to comment.