-
Notifications
You must be signed in to change notification settings - Fork 3
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
app shows 500 error page when switching page using shortcuts or browser buttons #1150
Comments
Happens on user profiles too: @rahultrivedi180 on discord:
|
Brainstorming solutions that I see that could solve this issue:
|
So the user will first come to the |
Yes, create a /p/ route and then either refresh the page or fetch the post from the friendly URL |
Not sure if it is good to fetch the post from a friendly URL. Because this way, we will have to rely on the capsule server to send us IPFS CID whenever the user tries to open the post directly from the shared link instead of the feed. If somehow server does not respond back, user may face an error page. |
I agree, that leaves us with options 2 and 3: Replace history state before route leave to /post/ URL |
If it's a /p/ route, we can fetch the IPFS cid, from capsule-server (this would require an extra GET route on the shareable link, that gives the cid of a given post id). With this CID, capsule-vue can then fetch the correct post. |
do you mean we should have two different post reader pages? |
sr-2022-08-23_14.42.50.webm
Steps to reproduce:
The text was updated successfully, but these errors were encountered: