Open
Description
When we hit TryPurescript without any queryparams it needs to fallback back to mainGitHubExample
,
mainGitHubExample :: String
mainGitHubExample = "/purescript/trypurescript/" <> tag <> "/client/examples/Main.purs"
mkGitHubUrl :: String -> URL
mkGitHubUrl id = "https://raw.githubusercontent.com/" <> id
when we call
>>> mkGitHubUrl mainGitHubExample
The resulting url is having an additional "/". This is crashing TryPurescript.
https://try.purescript.org
Metadata
Metadata
Assignees
Labels
No labels