Fix settings tags/categories URL redirecting to Inbox#90911
Conversation
… relations
When navigating to /settings/{policyID}/tags, the navigation adapter
could not resolve the correct background screen because SETTINGS_TAGS
screens were not registered in any RELATIONS map. This caused the
fallback to prepend REPORTS_SPLIT_NAVIGATOR (Inbox) as the background.
Register all SETTINGS_TAGS screens under SCREENS.WORKSPACE.TAGS and
all SETTINGS_CATEGORIES screens under SCREENS.WORKSPACE.CATEGORIES in
WORKSPACE_TO_RHP.ts so getMatchingFullScreenRoute resolves the workspace
split navigator as the background.
Co-authored-by: Shridhar Goel <ShridharGoel@users.noreply.github.com>
|
@MelvinBot Fill the checklist and add manual testing steps |
|
Updated the PR description:
Note: Screenshots/videos and multi-platform testing still need to be added before marking as ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb ChromeScreen.Recording.2026-05-17.at.8.53.06.PM.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2026-05-18.at.6.18.25.PM.movMacOS: Chrome / SafariScreen.Recording.2026-05-17.at.8.39.53.PM.mov |
|
@MelvinBot Mark it as ready for review |
|
Marked as ready for review. |
|
@ShridharGoel Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
@MelvinBot Mark all checkboxes as checked in the description |
|
We did not find an internal engineer to review this PR, trying to assign a random engineer to #90080 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
|
Done — all checkboxes in the PR description have been marked as checked. |
@ShridharGoel I don't think we should be doing this. The point of the checklist if for authors and reviewers to go over all the items to make sure they're done. Can you add the videos to the reviewer checklist that are missing? |
|
@cead22 This is a web-only issue, hence native videos were skipped since we can only check the issue on wide layouts. But I'll add some sanity videos of the remaining platforms as well. And the comment to MelvinBot was for the author checklist, since I can't edit it. |
|
🚧 @cead22 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/cead22 in version: 9.3.76-0 🚀
|
|
No help site changes are required. This PR is an internal navigation/routing fix — it adds screen entries to |
|
🚀 Deployed to production by https://github.com/roryabraham in version: 9.3.77-3 🚀
|
Explanation of Change
When navigating to
/settings/{policyID}/tags(e.g. by manually editing the URL), the Tags RHP opens correctly but the background page redirects to Inbox. This happens becauseSETTINGS_TAGSscreens are not registered in any RELATIONS map, sogetMatchingFullScreenRoutereturnsundefinedand the fallback prependsREPORTS_SPLIT_NAVIGATOR(Inbox) as the background.This PR adds all
SETTINGS_TAGS.*screens to theSCREENS.WORKSPACE.TAGSrelation and allSETTINGS_CATEGORIES.*screens to theSCREENS.WORKSPACE.CATEGORIESrelation inWORKSPACE_TO_RHP.ts. This allowsgetMatchingFullScreenRouteto resolve the correct workspace split navigator as the background instead of falling back to Inbox. The same fix is applied to the analogous/settings/{policyID}/categoriesroute which has the identical defect.Fixed Issues
$ #90080
PROPOSAL: #90080 (comment)
Tests
dev.new.expensify.comor local dev server)/workspaces/{policyID}/tags/workspaces/{policyID}/tagsto/settings/{policyID}/tagsand press Enter/workspaces/{policyID}/categories, change the URL to/settings/{policyID}/categories, and verify the background stays on the workspace pageOffline tests
N/A - this change only affects URL-to-navigation-state mapping and does not involve network requests.
QA Steps
/workspaces/{policyID}/tagsto/settings/{policyID}/tagsand press Enter/workspaces/{policyID}/categories, change URL to/settings/{policyID}/categories, and verify the background stays on the workspace pagePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari