Skip to content

Commit

Permalink
fix: fix default 'host' parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
seka19 committed Oct 13, 2023
1 parent 5b9897e commit 36cbe41
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ShopifyApp/Traits/AuthControllerTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,14 @@ public function authenticate(AuthShop $request)
ShopSession::GRANT_OFFLINE
);

$shopName = str_replace('.myshopify.com', '', $shopDomain);

return View::make(
'shopify-app::auth.fullpage_redirect',
[
'authUrl' => $authUrl,
'shopDomain' => $shopDomain,
'host' => $request->host ?? base64_encode($shopDomain . '/admin'),
'host' => $request->host ?? base64_encode("admin.shopify.com/store/{$shopName}"),
]
// compact('authUrl', 'shopDomain')
);
Expand Down

0 comments on commit 36cbe41

Please sign in to comment.