Permanent route to posts

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 - #2

http://meta.discourse.org/t/filtering-topic-lists-in-discourse/375558/3

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}