diff --git a/frontend/src/Parse.elm b/frontend/src/Parse.elm index 83ecf5a..7b4b6d8 100644 --- a/frontend/src/Parse.elm +++ b/frontend/src/Parse.elm @@ -13,7 +13,11 @@ parseUrl url = |> Maybe.andThen splitOffHead |> Maybe.andThen (\( ( ( ( ( prov, user ), repo ), separator ), gitref ), file ) -> - if List.isEmpty file || (separator /= pathSeparator prov) then + if + List.isEmpty file + || (List.head file |> Maybe.map String.isEmpty |> Maybe.withDefault False) + || (separator /= pathSeparator prov) + then Nothing else