From 1ad20eb075faf0d82f5f5a96e66f1cd6b5a331cf Mon Sep 17 00:00:00 2001 From: dave vader <48764154+plyr4@users.noreply.github.com> Date: Thu, 2 Jan 2025 11:50:28 -0600 Subject: [PATCH] fix: scrub query/fragment when setting base url (#830) --- src/elm/Shared.elm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/elm/Shared.elm b/src/elm/Shared.elm index b90d960e3..a9b906a32 100644 --- a/src/elm/Shared.elm +++ b/src/elm/Shared.elm @@ -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