Skip to content

Commit fd6f65f

Browse files
cpfergus1elia
andcommitted
Store user location when redirected to register
When checking out, if a user is not registered, they will be redirected to the registration path. This path does not need to be authenticated and therefore will not have the user's last location stored. We need to store the user's location if redirected. Co-Authored-By: Elia Schito <[email protected]>
1 parent 209efb2 commit fd6f65f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/decorators/frontend/controllers/spree/checkout_controller_decorator.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def check_authorization
4545
def check_registration
4646
return unless registration_required?
4747

48+
store_spree_user_location!
4849
redirect_to spree.checkout_registration_path
4950
end
5051

0 commit comments

Comments
 (0)