Hacker News new | ask | show | jobs
by Moter8 3173 days ago
Strangely enough, discourse uses the following style:

https://meta.discourse.org/t/deleted-topics-where-are-they/2...

/t/ for topic, slug for readability, then a topic id and at last a reply id.

2 comments

and your comment is the perfect demonstration why: when truncated, the id gets cut off before the slug.
Which is... something you don't want to happen, right?
To be fair, if you truncate a url for anything other than display, it's toast (which is why no sane person truncates URLs except for display).
Right, I was thinking purely display truncation, like here. Surviving copy-paste from here or other actual truncation it's bad, true.
So does reddit. Go to any comment section. You can remove the latter part with the title and only leave the identifier, and the link will still work. The short link actually only contains the identifier.