React and flask redirection issue in embadded mode

I’m building a Shopify app using React and Flask. I’ve set up the app, but when I redirect from the backend to the frontend, it briefly switches to a non-embedded mode for a split second, which shouldn’t happen.

i am facing double redirection issue.. just wanted to ask after authentication how can i redirect into embadded mode

You are asking this question in the Flow community topic, and this isn’t related to Flow. Partner questions should go to: https://community.shopify.dev/