Shopify CLI > Theme Dev > Editor Shortcut loading ajax URL

I have reproduced the issue on the latest CLI version.

Yes, I am on the latest version

I have searched existing posts and this report is not a duplicate.

Yes, this isn’t a duplicate

In which of these areas are you experiencing a problem?

Theme

Expected behavior

Open the editor without errors

Actual behavior

Editor opens with the message:
"This page is not compatible with the editor due to one of the following issues:

Page is redirecting to an unsupported URL
Page failed to load due to an error"

Reproduction steps

When running shopify theme dev there seems to be a newish feature than when you press “e” to open the editor, it now actually goes to the last URL visited.

However.. this is also the case for any ajax calls the theme makes, which can lead to a template using a layout of “none” and thus the online theme editor leads to an error page.

To reproduce..

  1. Create a new static template called product.ajax-test.liquid
  2. Add the code {%- layout none -%} and output Hello world or something.
  3. Write some JavaScript within theme.liquid to perform an Ajax fetch call to /products/test-product?view=ajax-test
  4. Run shopify theme dev
  5. Press “E” in your terminal
  6. The Shopify Editor will have attempted to open your Ajax URL and will show an error.

Verbose output

N/A

Operating system

Windows 11

CLI version

3.90.0

Shell

Git Bash

Nodejs version

24.6.0

What language and version are you using in your application?

N/A

Thanks for the report @ceri_waters! I’ve raised this with the CLI team internally and will update this thread once I hear back from them :slight_smile: