|
|
|
@ -65,7 +65,11 @@ module Invidious::Routes::Search
|
|
|
|
|
|
|
|
|
|
redirect_url = Invidious::Frontend::Misc.redirect_url(env)
|
|
|
|
|
|
|
|
|
|
env.set "search", query.text
|
|
|
|
|
if query.type == Invidious::Search::Query::Type::Channel
|
|
|
|
|
env.set "search", "channel:#{query.channel} #{query.text}"
|
|
|
|
|
else
|
|
|
|
|
env.set "search", query.text
|
|
|
|
|
end
|
|
|
|
|
templated "search"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|