Update errors.cr

このコミットが含まれているのは:
syeopite 2023-08-10 18:45:10 +00:00 committed by GitHub
コミット 2b36d3b419
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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