Skip to content

Commit

Permalink
Retain return_to address after granted_storage_access
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerball committed May 13, 2019
1 parent 8f2403f commit b753c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/shopify_app/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def granted_storage_access
session['shopify.granted_storage_access'] = true

params = { shop: @shop }
redirect_to "#{ShopifyApp.configuration.root_url}?#{params.to_query}"
redirect_to("#{return_address}?#{params.to_query}")
end

def destroy
Expand Down

0 comments on commit b753c5e

Please sign in to comment.