From 83eee7df911e8914e6b94b9fb840a1badb947896 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Wed, 28 Sep 2022 08:29:00 -0700 Subject: [PATCH] chore: Set locale in default_locale (#5515) --- app/controllers/dashboard_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/dashboard_controller.rb b/app/controllers/dashboard_controller.rb index 49993e6ee..84677c770 100644 --- a/app/controllers/dashboard_controller.rb +++ b/app/controllers/dashboard_controller.rb @@ -45,6 +45,7 @@ class DashboardController < ActionController::Base @portal = Portal.find_by(custom_domain: domain) return unless @portal + @locale = @portal.default_locale render 'public/api/v1/portals/show', layout: 'portal', portal: @portal and return end