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

All app links open in new tab?! #149

Closed
key88sf opened this issue Oct 16, 2024 · 1 comment
Closed

All app links open in new tab?! #149

key88sf opened this issue Oct 16, 2024 · 1 comment

Comments

@key88sf
Copy link

key88sf commented Oct 16, 2024

I created a new Shopify app using the template. Whenever I add any Polaris element that uses an anchor element, the links open new tabs instead of the current window. For exampe, adding the following to the default index.jsx page:

<Link url="/pagename">Click me</Link>

results in a link where clicking it opens a new tab instead of it operating on the current window location. This never happened before with AppBridge 3.x. Also the URL it is opening seems to be relative to the backend rails host name. For example, if the current window location is https://admin.shopify.com/store/my-dev-store/apps/test-app, the URL of the new tab is: https://<cloudflare-rails-host-name>/pagename --- so not even relative to the current window location.

Any ideas why this is happening now?

@lizkenyon
Copy link
Contributor

I am going to close this ticket. We will provide updates on this ticket.

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

No branches or pull requests

2 participants