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

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