ResourceList Item URL will 404

Highlighted
New Member
6 0 0

Hi all,

 

I've added a ResourceList to my page, in react, and in each ResourceItem I have the customer ID as the main URL and the order URL as the shortcutAction however no matter what I set as the URL's, it always 404's on me, 

 

I've tried 'customers/1234567', 'admin/customers/1234567',etc, but it seems to append it to my server URL ('https://my-ngrok.io') etc. If I inspect the element, it shows the href as matching what I sent. (The 1234567 is replaced by the actual customer id etc). 

 

If I try creating the full URL ('https://my-store.myshopify.com/admin/customers/1234567' ) it will give an "X-Frame-Options" denied message, which makes sense as it is trying to load the URL itself within the same iFrame. 

 

Any thoughts? Everything else works well.

 

Thanks, Richard

 

 

0 Likes
Highlighted
New Member
6 0 0

Interestingly I get exactly the same thing with <Link>, whether I use an absolute URL (which tries within the iFrame, 'orders', '/orders' etc. The latter two will simply append to my app base URL, not the store admin?

 

I am using React for a SPA and Router so not sure if that in play!

0 Likes
Tourist
9 1 3

Hi Richard,

 

Did you ever find a solution to this problem? I am running into the same issue and have no idea as to how to avoid a 404. 

 

Thanks in advance!

0 Likes