mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Preserve url params in video aliases
This commit is contained in:
parent
42be1321b2
commit
45d687c4e1
1 changed files with 6 additions and 1 deletions
|
@ -189,6 +189,11 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
|
|||
end
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue