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..
- Create a new static template called product.ajax-test.liquid
- Add the code
{%- layout none -%}and output Hello world or something. - Write some JavaScript within theme.liquid to perform an Ajax fetch call to /products/test-product?view=ajax-test
- Run
shopify theme dev - Press “E” in your terminal
- 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