[CP Staging] Fix undefined inside backTo parameter for export accounts#55472
Conversation
|
@dukenv0307 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] |
|
should we remove backTo in the url if it's undefined? @narefyev91 |
i think it's not exist in the url
|
|
@dukenv0307 we can as well pass one more prop to
And usage will be like this:
|
|
Howdy y'all - can we please get this moving so we can unblock deploy? 🙏 @dukenv0307 got any concerns with the current implementation? |
|
@Beamanator I'm reviewing |
|
The current implementation looks good to me |
|
I'll finish the checklist soon |
|
Ok great thanks so much 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2025-01-20.at.21.37.43.moviOS: NativeScreen.Recording.2025-01-20.at.21.38.49.moviOS: mWeb SafariScreen.Recording.2025-01-20.at.21.37.09.movMacOS: Chrome / SafariScreen.Recording.2025-01-20.at.21.34.48.movMacOS: DesktopScreen.Recording.2025-01-20.at.21.43.22.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
…ck-to [CP Staging] Fix undefined inside backTo parameter for export accounts (cherry picked from commit 791217f) (CP triggered by Beamanator)
|
🚀 Cherry-picked to staging by https://github.com/Beamanator in version: 9.0.87-2 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
|
🚀 Deployed to production by https://github.com/Beamanator in version: 9.0.87-3 🚀
|


Explanation of Change
We could not use backTo with getUrlWithBackToParam for company cards logic - it will encodeURIComponent each time we pass backTo to the route - which will lead to %252025202520 - inside the route and we would never get the correct value like %20.
Problem is coming from backTo = 'undefined' - now if param is not passing - it will have type string. We just need to add check logic to prevent using backTo if it's not a valid string.
Fixed Issues
$ #54371, #55417
PROPOSAL:
Tests
Offline tests
No changes
QA Steps
PR 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))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
android-web.mov
iOS: Native
ios.mov
iOS: mWeb Safari
ios-web.mov
MacOS: Chrome / Safari
web.mov
MacOS: Desktop
desktop.mov