Fix collection search not working from tab

This commit is contained in:
Correl Roush 2023-02-13 15:10:16 -05:00
parent 96a135bbc7
commit fcb12ec630

View file

@ -169,7 +169,10 @@ parseUrl =
)
|> Url.Parser.Query.map (Maybe.withDefault True)
in
Url.Parser.top <?> Url.Parser.Query.map3 Criteria query sortBy inCollection
Url.Parser.oneOf
[ Url.Parser.top <?> Url.Parser.Query.map3 Criteria query sortBy inCollection
, Url.Parser.s "collection" <?> Url.Parser.Query.map3 Criteria query sortBy inCollection
]
criteriaFromUrl : Url.Url -> Criteria