Shopify / shopify-app-bridge

https://shopify.dev/docs/api/app-bridge
88 stars 9 forks source link

App Bridge navigation appears to be broken for programmatic internal redirects #440

Open jasonbuehler opened 1 month ago

jasonbuehler commented 1 month ago

Describe the bug

Using app bridge navigation for programmatic internal redirects does not work. It doesn't seem to pass the session with the call. When I use it on my remix app I am redirected to a login screen. It should just navigate to the specific path that it's being called with.

To Reproduce

Steps to reproduce the behaviour:

  1. Create a programmatic redirect in a remix app ( open('/app?foo=bar', '_self'))
  2. App bridge redirects to the login view instead of navigating to /app inside of the embedded application

Expected behaviour

Calling open('/path', '_self') should navigate to the argument path inside the embedded application experience

Contextual information

Packages and versions

List the relevant packages you’re using, and their versions. For example:

Platform

Additional context

Using Shopify Remix application template

jasonbuehler commented 2 days ago

Does anyone have a suggested work around or more information on this issue? It's really blocking development on my project and I just want to make sure I am not doing something silly that's easily fixable.