Skip to content

[Bug]: Incorrect JavaScript Asset URLs for Theme App Extensions #3488

Description

@daviareias

In which of these areas are you experiencing a problem?

Extension

Expected behavior

The expected behavior is that all stores serve the correct JavaScript asset link for theme app extensions, which should be:
https://cdn.shopify.com/extensions/10bde2b1-85da-42d0-80be-c275218cacdc/0.1.0/assets/antispy.js

example page serving right asset:

https://scalaapps.myshopify.com (use password 12345)

Actual behavior

In some stores, an incorrect JavaScript asset URL is being served, leading to a 404 error as the asset does not exist. The incorrect URL being served is:
https://cdn.shopify.com/extensions/10bde2b1-85da-42d0-80be-c275218cacdc/scala-anti-spy-0/assets/antispy.js

Store serving wrong asset:

https://multistorearg.com/

The version of the app being served is the same.

Verbose output

Since this is related to theme app extensions rather than a CLI command execution, the verbose output might not be applicable. However, any logs from Shopify's side regarding asset delivery failures would be helpful.

Reproduction steps

To reproduce the error:

1. Find a theme extension that has not been updated since may last year, you dashboard should show this on Shopify:

Screen Shot 2024-02-29 at 21 55 22

2. Inspect the page to find the script tag sourcing the JavaScript asset. (example page: https://multistorearg.com/)
3. Note the incorrect URL being served for the asset.
4. Compare it to the correct url being served in most stores (example page: https://scalaapps.myshopify.com, use password 12345)

Operating System

not applicable

Shopify CLI version (check your project's package.json if you're not sure)

not applicable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions