lemmy-ui icon indicating copy to clipboard operation
lemmy-ui copied to clipboard

Make post URLs more meaningful

Open kevinhikaruevans opened this issue 10 months ago • 4 comments

Requirements

  • [X] This is a feature request and not a bug report. Otherwise, please create a new bug report instead.
  • [X] Please check to see if this request (or a similar one) already exists.
  • [X] It's a single feature. Please don't request multiple features in one issue.

Describe the feature you'd like

It would be nice to have post URLs that:

  • have the community in the URL
  • have a URL slug generated using the post's title

Whenever someone links a Lemmy post, I have no idea what the content will be from the URL. It would be nice if the URL gave clues to what to expect in the post.

Instead of having https://lemmy.example/post/1234, I would like to see https://lemmy.example/c/some-community/post/1234/this-is-some-thread (or something similar).

kevinhikaruevans avatar Aug 29 '23 15:08 kevinhikaruevans

Yep, this would be a huge improvement. It would be a usability improvement and it would be an SEO improvement too.

ipkpjersi avatar Aug 31 '23 04:08 ipkpjersi

somewhat related, dealing with changing the post URL format

https://github.com/LemmyNet/lemmy/issues/2987#issuecomment-1690834945

it would probably be best to do these changes at the same time

Die4Ever avatar Aug 31 '23 04:08 Die4Ever

I believe this is a backend issue and a duplicate of Community name in post URL

8ullyMaguire avatar Sep 05 '23 14:09 8ullyMaguire

It's a duplicate but it's both a frontend and backend issue.

The route is defined here: https://github.com/LemmyNet/lemmy-ui/blob/c49ca9e1958622600f615c276d599d70aa6ccda5/src/shared/routes.ts#L69-L73

Then the Post and HttpService will need to be updated.

kevinhikaruevans avatar Sep 05 '23 15:09 kevinhikaruevans