Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout Return URL is incorrect #1390

Open
sandmule opened this issue Oct 3, 2023 · 12 comments
Open

Checkout Return URL is incorrect #1390

sandmule opened this issue Oct 3, 2023 · 12 comments
Labels

Comments

@sandmule
Copy link

sandmule commented Oct 3, 2023

What is the location of your example repository?

No response

Which package or tool is having this issue?

hydrogen-react

What version of that package or tool are you using?

2023.7.4

What version of Remix are you using?

No response

Steps to Reproduce

I'm not sure if this has changed with the new 1 step checkout, but we've noticed the return URL on the logo and back button is pointing to a oxygen hosted domain, that results in a 404 https://yoxly-657166fcb851c4062ad2.o2.myshopify.dev/. We're using hydrogen-react.

There is no option to change/set the correct url either on the admin portal or in the code base.

Expected Behavior

It used to point back to our myshopify domain, while we would prefer to link back to our headless store, this was manageable.

Actual Behavior

it points to a non existent oxygen store: https://yoxly-657166fcb851c4062ad2.o2.myshopify.dev/

@contrebande-labs
Copy link

HI @sandmule ! This appears to be a dupe of #1203. Can you confirm?

@sandmule
Copy link
Author

sandmule commented Oct 4, 2023

Hi @contrebande-labs yes, I did see that issue and it is similar in regards to pertaining to the checkout, but we're not using oxygen to host. So the domain isn't accessible inside shopify and these is no functionality in shopify to chose which return URL to use.

@contrebande-labs
Copy link

Hi @sandmule. Well, even if there seems to have DNS settings for Oxygen, they don't work for the checkout, just the same. So, it's the same issue.

@sandmule
Copy link
Author

sandmule commented Nov 7, 2023

@contrebande-labs, it is not the same issue. This issue is that the URL in the logo and cart button is pointing to a non-existent hydrogen deployment and there is no way to change it.

@blittle
Copy link
Contributor

blittle commented Jun 21, 2024

@sandmule is this still a problem?

@sandmule
Copy link
Author

It is. We had to set up a Hydrogen instance to add a redirect to the correct URL. Its fine for us, but is wasted computing for Shopify

@dschlabach
Copy link
Contributor

How exactly did you solve this @sandmule? We are facing the same issue

Our logo at checkout is linking to a non-existent Oxygen deployment. We have a proper one set up to redirect to our shop's main application, but there's no way to change this within the Shopify UI. We even set the redirect repo as "public" within the Hydrogen application

@sandmule
Copy link
Author

I created a Oxygen instance in Shopify. I then updated the server.ts it provides to add a basic redirect. Nothing amazing, but at least its working

export default {
  async fetch(
    request: Request,
    env: Env,
    executionContext: ExecutionContext,
  ): Promise<Response> {
    try {
      return redirect('https://[yourdomain].com');
}

@dschlabach
Copy link
Contributor

Oh yeah - that's exactly what I have. But for some reason I can't get Shopify to update the checkout link... it's still pointing to a deleted Oxygen instance.

Does it just take some time? Or is there another way to "promote" it to the main production store

@sandmule
Copy link
Author

Oh I'm not sure. I'm guessing you've looked in the domains tab in settings?

@sandmule
Copy link
Author

And you've only got 1 Hydrogen storefront? If so I think it is a different bug. Sorry I feel your pain!

@dschlabach
Copy link
Contributor

We have a couple of Hydrogen storefronts. I deleted the one whose URL was being used at checkout in the hopes that it would update the checkout domain to the right one. Still points to the old, deleted one, though and there's no way to change it in Shopify 😭

@blittle - any way you could help me escalate this internally? My Hydrogen setup may be in a weird state

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants