Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[keyserver] Convert urlInfo in website responders
Summary: [ENG-4670](https://linear.app/comm/issue/ENG-4670) We also need to convert the urlInfo in the website responder so it works on link containing the new id schema. We can also handle the older links by not converting (the older link already contain schema that's inside the keyserver db). Depends on D8879 (moving stuff because of cyclic dependencies) Test Plan: Open links: - http://localhost:3000/comm/chat/thread/256%7C86139/ -> navigated to the `86139` - http://localhost:3000/comm/chat/thread/86139/ -> navigated to the `86139` thread, url was changed to match id schema after loading Try opening links to non-existant threads: - http://localhost:3000/comm/chat/thread/256%7C861392/ -> navigated to the thread at the top of the thread list - http://localhost:3000/comm/chat/thread/861392/ -> navigated to the thread at the top of the thread list Try navigating to settings and check if it worked correctly: http://localhost:3000/comm/settings/account/ Tried navigating to a pending (non-sidebar) threads with two users and was navigated correctly. Navigating to sidebar pending threads doesn't work but from analyzing the code and diffs it isn't supported by the keyserver anyway. Also opened landing to check if there are no weird cyclic dependecies errors there Reviewers: tomek, inka, kamil, ginsu Reviewed By: kamil Subscribers: ashoat Differential Revision: https://phab.comm.dev/D8880
- Loading branch information