about summary refs log tree commit diff
path: root/app/controllers/concerns/web_app_controller_concern.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/concerns/web_app_controller_concern.rb')
-rw-r--r--app/controllers/concerns/web_app_controller_concern.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/concerns/web_app_controller_concern.rb b/app/controllers/concerns/web_app_controller_concern.rb
index f28786f63..7ba7a57e3 100644
--- a/app/controllers/concerns/web_app_controller_concern.rb
+++ b/app/controllers/concerns/web_app_controller_concern.rb
@@ -5,6 +5,7 @@ module WebAppControllerConcern
 
   included do
     prepend_before_action :redirect_unauthenticated_to_permalinks!
+    before_action :set_pack
     before_action :set_app_body_class
   end
 
@@ -13,10 +14,14 @@ module WebAppControllerConcern
   end
 
   def redirect_unauthenticated_to_permalinks!
-    return if user_signed_in? && current_account.moved_to_account_id.nil?
+    return if user_signed_in? # NOTE: Different from upstream because we allow moved users to log in
 
     redirect_path = PermalinkRedirector.new(request.path).redirect_path
 
     redirect_to(redirect_path) if redirect_path.present?
   end
+
+  def set_pack
+    use_pack 'home'
+  end
 end