dummygram
dummygram copied to clipboard
Give each post a permalink
Description
Each post should have a permalink which can be opened directly using the link. The post link should copy-able from the top-right threedot button.
How to make it work:
Since it is single-page site, it would not be simple to load the post page directly on permalink as it is hosted statically. As https://narayan954.github.io/dummygram/posts/ezsrfTwaIwyqURNspPwH this link will result in a 404 page.
My suggestion here is to use the hash technique for the same. But After that the permalink will look like this: https://narayan954.github.io/dummygram/posts#ezsrfTwaIwyqURNspPwH (proposed, open the post directly) instead of https://narayan954.github.io/dummygram/posts/ezsrfTwaIwyqURNspPwH (current, couldn't be accessed) I will use a posts folder and a index.html whose only significance will be to redirect to main (react) site, so that /posts will be redirected to /
Steps to reproduce
- Open a post by clicking its title (author name)
- Copy the address bar link.
- It should be like this: https://narayan954.github.io/dummygram/posts/ezsrfTwaIwyqURNspPwH
- Now open a new tab and paste the same link, it would result in a 404, instead of opening the post.
Screenshots
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional information
Please assign to me under GSSOC'23.
Right! You can work on this :)
Hii @narayan954 I would like to work on it
Hii @narayan954 I would like to work on it
sure, go ahead!