2011-06-17, 10:19 AM
2011-06-17, 11:06 AM
That's not a bug, it's a feature 
The "#pid21" part is for scrolling that post into view.

The "#pid21" part is for scrolling that post into view.
2011-06-17, 11:10 AM
^ I guess he wants only one pid from the last post clickable link from the forums index page ..
2011-06-17, 11:58 AM
Yeah. I want only one PID, exact as ranjani stated
2011-06-17, 12:33 PM
It won't auto scroll to the last post then.
2011-06-17, 12:37 PM
(2011-06-17, 12:33 PM)Darth Stabro Wrote: [ -> ]It won't auto scroll to the last post then.
But here, in MyBB community, when we click it, it shows only one PID
2011-06-17, 12:42 PM
That's because they are using SEO urls.
If they did not, the url would be:
http://community.mybb.com/showthread.php...54#pid3404
But with SEO it is
http://community.mybb.com/thread-96840-p...#pid708045
If they did not, the url would be:
http://community.mybb.com/showthread.php...54#pid3404
But with SEO it is
http://community.mybb.com/thread-96840-p...#pid708045
2011-06-17, 12:56 PM
It's two pids here too, only the first pid is written as post-123 instead of pid=123
pid=123 causes the correct thread and page to be opened that contains this post
#pid123 causes the browser to actually scroll to the post on that page
So both are required for direct post links to work.
You could do a URL that is just post-123, which then redirects to ?tid=1&page=2#pid123, but then you still have both pids, one before and one after the redirect.
You could link to tid=1&page=2#pid123 directly, but the link would stop working when posts are deleted or moved (and thus the thread id, or page number changes).
TL;DR it's a feature, not a bug, so no need to fix it
pid=123 causes the correct thread and page to be opened that contains this post
#pid123 causes the browser to actually scroll to the post on that page
So both are required for direct post links to work.
You could do a URL that is just post-123, which then redirects to ?tid=1&page=2#pid123, but then you still have both pids, one before and one after the redirect.
You could link to tid=1&page=2#pid123 directly, but the link would stop working when posts are deleted or moved (and thus the thread id, or page number changes).
TL;DR it's a feature, not a bug, so no need to fix it
2011-06-17, 05:54 PM
OK thanks