Change links on new customer account page

Topic summary

A developer building a headless Shopify store with Next.js and React.js is encountering a critical issue with the new customer account page hosted on Shopify’s domain (shopify.com/[store-id]/account/profile).

The Problem:

  • Some links within the new customer account page redirect to the default Shopify theme instead of the custom headless storefront
  • Example: The “buy again” button on past orders redirects incorrectly

Current Status:

  • The developer is seeking a solution to change these links to redirect to their headless domain
  • The core functionality of their headless store is working, but this redirect issue remains unresolved

This appears to be an open question with no solution provided yet in the thread.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

I am developer creating Headless shopify webshops with next.js and React.js. Everything already works, but there is one huge problem: The new customer account page (on a domain like this: https://shopify.com/85660696855/account/profile) hosted by shopify has some links redirecting to the default theme, which is obviously not in use. For example, the “buy again” button on past orders. Is there any way to change the links to redirect to my headless domain?