Repository navigation
fix(android): hand no_applink URLs to InAppBrowser - #225
Merged
Merged
Conversation
Android App Links claim sefaria.org wholesale, so the post-login landing is captured even though the manifest cannot exclude by query. Generalise the set-language-cookie bailout to a list of browser-only query keys. Co-authored-by: Cursor <cursoragent@cursor.com>
📊 Code Quality Score: 5/100
Was this score accurate? 👍 Yes · 👎 No Scored by GitVelocity · How are scores calculated? |
YishaiGlasner
approved these changes
Sep 24, 2026
📊 Code Quality Score: 7/100
Was this score accurate? 👍 Yes · 👎 No Scored by GitVelocity · How are scores calculated? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
sefaria.org/.ilwholesale (autoVerify, nopathPattern), so the post-login landing is captured even though the manifest cannot exclude by query.set-language-cookiebailout inDeepLinkRouter.route()into aBROWSER_ONLY_QUERY_KEYSlist that also includesno_applink.k in query), not=== '1', so?no_applink,?no_applink=, and?no_applink=1all hand off tocatchAll→openUri(InAppBrowser / Custom Tabs). Check runs before thedecodeURIComponentreduce.Pairs with Sefaria-Project nginx unshadow (AASA currently hardcoded at the edge) and PR #3631 (
no_applinkquery marker). This change is inert until #3631 deploys ano_applinkparam;set-language-cookiebehaviour is unchanged.Test plan
npx jest __tests__/DeepLinkRouter.test.js --watchAll=false— 21/21 passingno_applink=1opens InAppBrowser / Custom Tabs, not an in-app text ref?set-language-cookie=language switch still leaves the app the same way as before/Genesis.1.1and/textsdeep links still open in-appMade with Cursor