dummygram icon indicating copy to clipboard operation
dummygram copied to clipboard

Give each post a permalink

Open binbard opened this issue 1 year ago • 3 comments

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

  1. Open a post by clicking its title (author name)
  2. Copy the address bar link.
  3. It should be like this: https://narayan954.github.io/dummygram/posts/ezsrfTwaIwyqURNspPwH
  4. Now open a new tab and paste the same link, it would result in a 404, instead of opening the post.

Screenshots

chrome_NMzLk2WLzJ

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.

binbard avatar May 28 '23 19:05 binbard

Right! You can work on this :)

narayan954 avatar May 29 '23 09:05 narayan954

Hii @narayan954 I would like to work on it

biplavmz avatar Aug 07 '23 15:08 biplavmz

Hii @narayan954 I would like to work on it

sure, go ahead!

narayan954 avatar Aug 07 '23 22:08 narayan954