Workspace - Clicking Manage cards takes user to 404 page
If you havenβt already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Go to https://staging.new.expensify.com
- Log in with expensifail account
- Go to any Workspace
- Click on Manage Cards
Expected Result:
Clicking Manage Card button under Expensify Card is leading for the expensify.com
Actual Result:
Clicking on Manage Card button under Expensify Card is leading for 404 error
Workaround:
Unknown
Platform:
Where is this issue occurring?
- Web
- iOS
- Android
- Desktop App
- Mobile Web
Version Number: 1.0.94-0 Logs: https://stackoverflow.com/c/expensify/questions/4856 Notes/Photos/Videos:
https://user-images.githubusercontent.com/43996225/132256665-86ecbc7a-44be-45a5-b71c-2b35a7a7889f.mp4
Expensify/Expensify Issue URL:
:wave: Friendly reminder that deploy blockers are time-sensitive β± issues! Check out the open StagingDeployCash deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
- Identify the pull request that introduced this issue and revert it.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
Triggered auto assignment to @ctkochan22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Just looking at this now, not sure where this is caused yet. But its strange that the URL is this:

And this is the only pr where we may have changed where we re-direct to? The strange bit in the middle /v/ASDF.../
https://github.com/Expensify/App/pull/4789/files#diff-7ba339cca3eda747a4a803353b2b9ec61d991ae1d3d52ee4726aa0d659308e1aR53
@cead22 Do you have any insights as to what may have gone wrong here? This is the last deploy blocker for New Expensify atm.
I think its this PR: https://github.com/Expensify/App/pull/4789
- Manage card button is here - https://github.com/Expensify/App/blob/18031207e59c033c2343afd2f3dbedffb1cdba24/src/pages/workspace/WorkspaceCardPage.js#L96
- Runs
openSignedInLink()here - https://github.com/Expensify/App/blob/18031207e59c033c2343afd2f3dbedffb1cdba24/src/pages/workspace/WorkspaceCardPage.js#L107 - And in this PR, we add this to the validate URL which might have fixed the original issue, but breaks this flow - https://github.com/Expensify/App/pull/4789/files#diff-7ba339cca3eda747a4a803353b2b9ec61d991ae1d3d52ee4726aa0d659308e1aR53
@tgolen as the reviewer can you buddy check me here?
Is the problem with the URL just that it's missing ? between the validateCode and exitTo?

I think that's it, Rory. Yep! Looks like that was a bug introduced when the logic was moved out of ROUTES.js
ahh yep that looks like its it. So should we just fix it then instead?
Looks like we were missing the / originally: https://github.com/Expensify/App/pull/4789/files#diff-fed84caebc7e71b17fe9ac17cd04c5ec5aa8ce8a9f2ddc2ad33eb77253560a2eL91
Hm, I still think it's missing the ?.
Before:
const exitToURL = exitTo ? `?exitTo=${exitTo}` : '';
After:
const exitToURL = url ? `exitTo=${url}` : '';
:face-palm: yeah that was it.
When i'm getting it tested locally, its directing me to secure.expensify.com. But thats got to be some weird local config issue right? The code makes no sense that it would point there:

Yeah, sounds like maybe some of your config files don't have the right settings. Sorry, I'm having some issues hunting down the constant for those URLs, but I think that's all it is.
Tested on staging we are good

π Deployed to production by @yuwenmemon in version: 1.0.94-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
π Deployed to staging by @ctkochan22 in version: 1.0.94-2 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |
π Deployed to production by @yuwenmemon in version: 1.0.95-1 π
| platform | result |
|---|---|
| π€ android π€ | success β |
| π₯ desktop π₯ | success β |
| π iOS π | success β |
| πΈ web πΈ | success β |