|
|
@ -45,9 +45,7 @@ class Invidious::Routes::Search < Invidious::Routes::BaseRoute
|
|
|
|
# Display the full page search box implemented in #1977
|
|
|
|
# Display the full page search box implemented in #1977
|
|
|
|
env.set "search", ""
|
|
|
|
env.set "search", ""
|
|
|
|
templated "search_homepage", navbar_search: false
|
|
|
|
templated "search_homepage", navbar_search: false
|
|
|
|
return
|
|
|
|
else
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
page = env.params.query["page"]?.try &.to_i?
|
|
|
|
page = env.params.query["page"]?.try &.to_i?
|
|
|
|
page ||= 1
|
|
|
|
page ||= 1
|
|
|
|
|
|
|
|
|
|
|
@ -68,4 +66,5 @@ class Invidious::Routes::Search < Invidious::Routes::BaseRoute
|
|
|
|
env.set "search", query
|
|
|
|
env.set "search", query
|
|
|
|
templated "search"
|
|
|
|
templated "search"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|