Update errors.cr

This commit is contained in:
syeopite 2023-08-10 18:45:10 +00:00 committed by GitHub
parent 6b17bb5250
commit 2b36d3b419
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
module Invidious::Routes::ErrorRoutes
def self.error_404(env)
# Workaround for # 3117
# Workaround for #3117
if HOST_URL.empty? && env.request.path.starts_with?("/v1/storyboards/sb")
return env.redirect "#{env.request.path[15..]}?#{env.params.query}"
end