diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fea9fd79b14..1c829d21625 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -48,7 +48,7 @@ def disable_embedded_styles def after_sign_in_path_for(resource_or_scope) return session[:shopfront_redirect] if session[:shopfront_redirect] - stored_location_for(resource_or_scope) || signed_in_root_path(resource_or_scope) + stored_location_for(resource_or_scope) || main_app.root_path end def after_sign_out_path_for(_resource_or_scope)