Update errors.cr

This commit is contained in:
syeopite 2023-08-10 18:45:10 +00:00 committed by syeopite
parent 26d04d0d92
commit 97c94766e7
No known key found for this signature in database
GPG Key ID: A73C186DA3955A1A

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