Skip to content

The fallback github url has additional "/" in path #306

Open
@imsaravana369

Description

@imsaravana369

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

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