Skip to content

Commit cc56db6

Browse files
authored
Merge pull request #6825 from Shopify/dlm-redirect-maximize
Add dev-console=show to app dev preview url
2 parents 73f6a3e + a734965 commit cc56db6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/app/src/cli/services/dev/processes/setup-dev-processes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ describe('setup-dev-processes', () => {
176176
})
177177

178178
// Dev console is NOT shown by default (only shown for 1P devs)
179-
expect(res.previewUrl).toBe('https://admin.shopify.com/store/store/apps/api-key')
179+
expect(res.previewUrl).toBe('https://admin.shopify.com/store/store/apps/api-key?dev-console=show')
180180
expect(res.processes[0]).toMatchObject({
181181
type: 'web',
182182
prefix: 'web-backend-frontend',
@@ -206,7 +206,7 @@ describe('setup-dev-processes', () => {
206206
apiKey: 'api-key',
207207
apiSecret: 'api-secret',
208208
port: expect.any(Number),
209-
appUrl: 'https://admin.shopify.com/store/store/apps/api-key',
209+
appUrl: 'https://admin.shopify.com/store/store/apps/api-key?dev-console=show',
210210
key: 'somekey',
211211
storeFqdn: 'store.myshopify.io',
212212
},

packages/app/src/cli/utilities/app/app-url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export function buildAppURLForAdmin(storeFqdn: string, apiKey: string, adminDoma
1010
const normalizedFQDN = normalizeStoreFqdn(storeFqdn)
1111
const storeName = normalizedFQDN.split('.')[0]
1212

13-
return `https://${adminDomain}/store/${storeName}/apps/${apiKey}`
13+
return `https://${adminDomain}/store/${storeName}/apps/${apiKey}?dev-console=show`
1414
}
1515

1616
export function buildAppURLForMobile(storeFqdn: string, apiKey: string) {

0 commit comments

Comments
 (0)