mirror of
https://github.com/iv-org/invidious.git
synced 2025-05-31 14:11:54 +05:30
Preserve url params in video aliases
This commit is contained in:
@@ -189,6 +189,11 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
|||||||
end
|
end
|
||||||
|
|
||||||
def redirect(env)
|
def redirect(env)
|
||||||
return env.redirect "/watch?v=#{env.params.url["id"]}"
|
url = "/watch?v=#{env.params.url["id"]}"
|
||||||
|
if env.params.query.size > 0
|
||||||
|
url += "&#{env.params.query}"
|
||||||
|
end
|
||||||
|
|
||||||
|
return env.redirect url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user