Merge pull request #1942 from syeopite/1736

Add multiple video route aliases.
This commit is contained in:
Perflyst 2021-04-08 11:08:25 +02:00 committed by GitHub
commit 661d715446
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View file

@ -187,4 +187,8 @@ class Invidious::Routes::Watch < Invidious::Routes::BaseRoute
templated "watch"
end
def redirect(env)
return env.redirect "/watch?v=#{env.params.url["id"]}"
end
end