Skip to content

Commit ccc9481

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 <elia@schito.me>
1 parent a0a5904 commit ccc9481

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)