-
Notifications
You must be signed in to change notification settings - Fork 699
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
Keep original path and params when redirecting deep links to embed #1869
Keep original path and params when redirecting deep links to embed #1869
Conversation
9884d4c
to
ee15ed4
Compare
ee15ed4
to
406e315
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!! Looks good to me, I just have a small comment on the test case.
ShopifyApp.configuration.embedded_app = true | ||
|
||
shop = "my-shop.myshopify.com" | ||
get :redirect_to_embed, params: { shop: shop, foo: "bar" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we add these extra params to test that it doesn't get included in the redirect?
get :redirect_to_embed, params: { shop: shop, foo: "bar" } | |
get :redirect_to_embed, params: { shop: shop, foo: "bar", host: "host", id_token:"id_token" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, updated
af7b0c4
to
c70c32c
Compare
@matteodepalo resolved changelog conflict. Ready for merge |
What this PR does
Fixes deep link behavior to make sure the original path and params are preserved after redirect to app embed. Right now all deep links are redirected to home page. In addition to deep links it fixes opening links in new tab in app embed.
CleanShot.2024-06-23.at.22.38.32.mp4
Checklist
Before submitting the PR, please consider if any of the following are needed:
CHANGELOG.md
if the changes would impact usersREADME.md
, if appropriate./docs
, if necessary