Make search query default to show
if given (#561)
This allows for shorter permalinks for displaying a given package.
This commit is contained in:
parent
5bbe885b62
commit
cf23c13a17
|
@ -307,6 +307,9 @@ init args defaultNixOSChannel nixosChannels maybeModel =
|
|||
, query =
|
||||
args.query
|
||||
|> Maybe.andThen Route.SearchQuery.searchQueryToString
|
||||
|> \ x -> case x of
|
||||
Just q -> Just q
|
||||
Nothing -> args.show
|
||||
, result = getField .result RemoteData.NotAsked
|
||||
, show = args.show
|
||||
, from =
|
||||
|
|
Loading…
Reference in a new issue