MyBB Community Forums

Full Version: Two pid codes in url!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I get two PIDs in url...
check here
http://pakforums.pk/showthread.php?tid=14&pid=21#pid21

How to pix it?
That's not a bug, it's a feature Big Grin
The "#pid21" part is for scrolling that post into view.
^ I guess he wants only one pid from the last post clickable link from the forums index page ..
Yeah. I want only one PID, exact as ranjani stated
It won't auto scroll to the last post then.
(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
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
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
OK thanks