-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix /r/undefined issue #1790
Fix /r/undefined issue #1790
Conversation
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! One minor comment
src/libs/actions/Report.js
Outdated
} | ||
|
||
const firstReportID = _.first(reportIDs); | ||
const currentReportID = firstReportID ? String(firstReportID) : 0; |
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.
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.
Nice catch! I'll fix this!
Updated |
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.
(oh except conflicts)
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.
Details
When navigating to the site root in Expensify.cash we are redirecting to
/r/undefined
which looks pretty goofy. This PR adds a default parameter to the report route so the URL will never showundefined
.Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/157273
Tests
Web/Desktop
/r
instead of/r/undefined
and that a report is visible in the main content areamWeb
/r
for nowiOS/Android
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android