anonymous:
Suppose you go to the post history of a user.
e.g. http://dynasty-scans.com/forum/posts?user_id=2
For a given post, you want to open the thread of that post to see the context.
You click on the thread subject at the top of the post.
Ideally, it should bring you to the page of the thread that the post is on.
Right now, it brings you to the first page of the thread.
Nezchan:
Well, it would be nice to have permalinks to individual posts in general. Don't have that functionality atm.
Alice Cheshire:
It does technically (with a bit of an exception) if you inspect the page source for the post history pages. For the most recent post in the search history linked above for example the post is forum_post_49678. If you're on the right page of the thread then it will actually link directly to that post if you add #forum_post_49678 to the end of the url for that thread. The only issue is that you do need to be on the right page or else it doesn't work. As an example this will link straight to your post.
Right, so as pointed out by Alice Cheshire, "pseudo-permalinks" are implemented.
(Pseudo in that it's not a URL with a single piece of information, most likely the post ID, so something like
http://dynasty-scans.com/forum/posts/95105 )
But it does work, i.e., scrolls you to the correct post.
It's just that it requires the thread URL with the correct page number and the fragment identifier for the post (#forum_post_12345).
Like the example in the quote:
http://dynasty-scans.com/forum/topics/5734-suggestions-for-improvement-v3?page=10#forum_post_95105
However, I can see that these "pseudo-permalinks" are already used, notably when creating or editing a post.
If you edit one of your past posts (even if you do it from post history) then click Update Post,
you will be redirected to the thread URL with the correct page number and the fragment identifier for the post (#forum_post_12345).
e.g.
I go to my own post history.
I find my post on page 10 of this thread.
I click Edit.
I go here:
http://dynasty-scans.com/forum/posts/95101/edit
I click Update Post.
I am redirected here:
http://dynasty-scans.com/forum/topics/5734-suggestions-for-improvement-v3?page=10#forum_post_95101
So I believe somewhere in the code, there is already a method/function that takes the post ID (95101 in my example) and figures out the page that the post is on and generates the final "pseudo-permalink".
Perhaps this method/function could be reused to generate the same "pseudo-permalink" in the post history, i.e., for each post, take the post ID and generate the "pseudo-permalink".
Disclaimer: I might be pointing out something that is completely obvious OR I might be talking total nonsense. :)
last edited at May 7, 2015 11:07PM