Skip to content

Using checkoutUrl on button's to attribute does not work on thank-you page #2584

Open
@abid-devsnest

Description

Please list the package(s) involved in the issue, and include the version you are using

@shopify/ui-extensions 2024.10.x
@shopify/ui-extensions-react 2024.10.x

Describe the bug

After obtaining checkoutUrl from cartCreate storefront mutation, if I use in button's to attribute, it redirects me to thank-you page instead of going to the new checkout page.

Steps to reproduce the behavior:

  1. Get checkoutUrl using cartCreate mutation
  2. Set checkoutUrl to to attribute
  3. Click the button

Expected behavior

It should redirect to the new checkout page

Screenshots

Additional context

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions