Skip to content

Commit 260d3df

Browse files
committed
Merge pull request #155 from ramananbalakrishnan/relative_url_authenticate
Use root_url from main_app when redirecting the user in authenticate
2 parents 22f73e1 + 0e10e9c commit 260d3df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/shopify_app/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def destroy
3535

3636
def authenticate
3737
if shop_name = sanitize_shop_param(params)
38-
fullpage_redirect_to "/auth/shopify?shop=#{shop_name}"
38+
fullpage_redirect_to "#{main_app.root_path}auth/shopify?shop=#{shop_name}"
3939
else
4040
redirect_to return_address
4141
end

0 commit comments

Comments
 (0)