-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
show not found page for invalid links #13027
Conversation
@pecanoro @Santhosh-Sellavel One of you needs to 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] |
Seems to be working well. One doubt url alone is not persisted in address bar here when clicking link from message. Are we good with this @pecanoro |
@aimane-chnaif Is there a way to keep the original URL in the navigation instead of showing |
I already researched that but found no way yet in react-navigation |
@aimane-chnaif Ok! One last thing, is |
This is working fine! |
yes, my PR doesn't affect original behavior for that link |
@marcaaron Just doubling checking, are you ok if we show |
Oh hmm const config = {
screens: {
Home: {
initialRouteName: 'Feed',
screens: {
Profile: 'users/:id',
Settings: 'settings',
},
},
'not-found': '*', // or 404: '*'
},
}; |
yeah different naming is possible. I also think NotFound is bad path in url. |
I prefer |
updated to |
@pecanoro please check |
Can you update the videos to show the updated URL? I will review tomorrow morning! |
@pecanoro updated videos |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2022-11-29.at.11.23.24.PM.movMobile Web - Chrome & SafariScreen.Recording.2022-11-29.at.11.19.46.PM.movDesktopScreen.Recording.2022-11-29.at.11.22.19.PM.moviOS & AndroidScreen.Recording.2022-11-29.at.11.16.03.PM.mov |
Noticed one weird behavior, while clicking an invalid report URL from the message. Chat Not Found is shown on the Desktop. But in mWeb/native navigated to the chat list the behavior is the same on staging/production. It's not introduced here should we report this in slack? ReportInvalid.mp4 |
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.
Looks good, and tests well. Just a doubt here
I feel it should be part of the solution, do we know why the left navigation gets opened? |
I think that's out of scope for this GH. |
Actually, we don't need to worry about that case. |
Not sure thanksgiving holidays period are considered as business days but I'd like to get this sorted asap considering bonus/penalty timeline. |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Check here as I mentioned
It already occurs on staging also. |
🚀 Deployed to production by @luacmartins in version: 1.2.35-0 🚀
|
Details
show generic not found page when go to invalid links
Fixed Issues
$ #9818
PROPOSAL: #9818 (comment)
Tests
Scenario 1:
Scenario 2: (web, mWeb)
Offline tests
Scenario 1:
Scenario 2: (web, mWeb)
This can't be tested in offline mode
QA Steps
Scenario 1:
Scenario 2: (web, mWeb)
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Screenshots/Videos
Web
web.mov
Mobile Web - Chrome
Mobile Web - Safari
msafari.mp4
Desktop
desktop.mov
iOS
ios.mp4
Android