fix: 22507 Blank Page Displayed when Copying and Pasting URL next to Original URL and Reloading with Enter Key#23931
Conversation
…Original URL and Reloading with Enter Key
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
|
@rushatgabhane 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] |
|
I have read the CLA Document and I hereby sign the CLA |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-08-02.at.04.04.49.movMobile Web - SafariScreen.Recording.2023-08-02.at.04.10.20.movDesktopScreen.Recording.2023-08-02.at.04.06.25.moviOSScreen.Recording.2023-08-02.at.04.07.52.movAndroidScreen.Recording.2023-08-02.at.04.07.32.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. |
|
🚀 Deployed to staging by https://github.com/Gonals in version: 1.3.50-0 🚀
|
|
@dantastisk @rushatgabhane Can you pls help us with more QA friendly steps ? |
It is a bit hard to test this on native apps, but if you add a new contact, you can put the link below in the url field, save it and when you click it, it should open the app and display the before mentioned error page. Native link: (Notice "new-expensify://" instead of "https://new.expensify.com") This works for iOS at least. I am not sure about android, but let me know if it doesn't work and I'll come up with another solution. |
|
🚀 Deployed to production by https://github.com/puneetlath in version: 1.3.50-3 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 1.3.51-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 1.3.51-2 🚀
|

Details
Fixed Issues
$ #22507
PROPOSAL: #22507 (comment)
Tests
Go to any chat
Copy and paste the url twice and press "Enter" or hit "Go" depending on platform.
For native apps running in emulators, the following commands can be used:
iOS:
xcrun simctl openurl booted "<INSERT_DEEPLINK_URL_HERE>"(e.g.xcrun simctl openurl booted "new-expensify:///r/5457316673649011new-expensify:///r/5457316673649011"Android:
adb devicesto get device ID andadb -s '<INSERT_DEVICE_ID_HERE>' shell am start -W -a android.intent.action.VIEW -d "<INSERT_DEEPLINK_URL_HERE>"(e.g.adb -s emulator-5554 shell am start -W -a android.intent.action.VIEW -d "new-expensify:///r/5457316673649011new-expensify:///r/5457316673649011")Electron: Navigate to the deeplink url from a browser and a popup will appear asking if you want to open it in the desktop app. Duplicated deeplink url example:
new-expensify:///r/5457316673649011new-expensify:///r/5457316673649011Verify that the 404 page is shown and is properly formatted.
Offline tests
Same as "Tests"
QA Steps
Same as "Tests"
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android