From 6e6d806560f128d18d9f0b77df882f561d809c08 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 12 Mar 2023 16:09:37 +0000 Subject: [PATCH] Set the locale when rendering a generic error page --- app/controllers/errors_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index caadd5121..ee1fcca6f 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -3,6 +3,8 @@ class ErrorsController < ApplicationController skip_authorization_check + before_action :set_locale + def forbidden respond_to do |format| format.html { render :status => :forbidden } -- 2.39.5