Permanent route to posts

AI-generated summary

This discussion centers on the desire for permanent, non-breakable links to individual posts within Discourse. thoka initiated the topic, requesting that links to posts remain functional even if the post is moved or reordered within a thread. Currently, posts are linked to by their position within a thread, which is not permanent.  supermathie explains that post ID links (https://meta.discourse.org/p/POST_ID) already exist and are permanent, though the ID isn’,t directly visible in the UI but accessible via the DOM (illustrated in the provided image). thoka clarifies, asking for this permanent linking to be the default behavior, including full and inline oneboxing support, and suggests a URL format of /t/{slug}/{topic-id}/position/{post-id} as a solution.

I would like to be able to link to single posts with a permanent route.

Currently, single posts are reachable via their position inside a thread. If a post is moved to another thread or the order of posts inside a thread is changed, the URL to this post should not change.

You can do this by linking to the post ID: https://meta.discourse.org/p/POST_ID

The post ID is not directly exposed in the UI, but you can get it from the DOM:

The following link will always end up at your post above: https://meta.discourse.org/p/1703790

3 Likes

I have to be more specific: I wish non breakable links to posts as default behaviour in discourse, idempotent to the current functionality.

(A) A link (copied from the URL bar in a browser) to a post should always link to the post, even if the post is moved.

(B) Oneboxing (inline and full) should work for these permanent links:

original link: Filtering topic lists in Discourse - #3 by Moin

post: Build embedding / onebox support for topic filters - #2 by sam - Feature - Discourse Meta

https://meta.discourse.org/p/1820701

Suggestion

The only solution I see is to include the ID of the post in the URL: /t/{slug}/{topic-id}/position/{post-id}