Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

fixed app install #1022

Merged
merged 2 commits into from
Sep 23, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ export default function createEnableCookies({apiKey}: OAuthStartOptions) {
(function() {
function setCookieAndRedirect() {
document.cookie = "shopify.cookies_persist=true";
window.location.href = window.shopOrigin + "/admin/apps/" + window.apiKey;
window.location.href = "/auth?shop=${shop}"
}

function shouldDisplayPrompt() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ describe('CreateEnableCookies', () => {
expect(ctx.body).toContain('CookiePartitionPrompt');
expect(ctx.body).toContain(baseConfig.apiKey);
expect(ctx.body).toContain(shopOrigin);
expect(ctx.body).toContain(`window.location.href = "/auth?shop=${shop}"`);
});
});