SMF Development > Bug Reports
[4473] rel="canonical" issues with PHPSESSID
Dannii:
--- Quote from: Joker™ on March 21, 2011, 03:04:20 PM ---I can confirm this, saw the behavior on test site
- Go to fresh installed RC5 forum as a guest with a browser having no history etc of the forum (tested in these conditions)
When clicked over a topic I got this URL
--- Code: ---http://localhost/rc5/index.php?PHPSESSID=4knrmpms15r5986rb51a925gt0&topic=9.msg11#new
--- End code ---
- Browser - Safari 5, Opera 11.
- OS - Windows 7.
--- End quote ---
That is entirely irrelevant to rel="canonical". You have to view source to check what the canonical URL is.
Joker™:
--- Quote from: Dannii on March 21, 2011, 10:01:38 PM ---
--- Quote from: Joker™ on March 21, 2011, 03:04:20 PM ---I can confirm this, saw the behavior on test site
- Go to fresh installed RC5 forum as a guest with a browser having no history etc of the forum (tested in these conditions)
When clicked over a topic I got this URL
--- Code: ---http://localhost/rc5/index.php?PHPSESSID=4knrmpms15r5986rb51a925gt0&topic=9.msg11#new
--- End code ---
- Browser - Safari 5, Opera 11.
- OS - Windows 7.
--- End quote ---
That is entirely irrelevant to rel="canonical". You have to view source to check what the canonical URL is.
--- End quote ---
I wasn't talking of the rel="canonical" , but isn't the url looks absurd, like if the guest want to show the user to someone or even if the guest user wants to bookmark it.
el canadiano:
--- Quote from: Arantor on March 21, 2011, 02:00:27 PM ---Version of SMF? Mods installed?
--- End quote ---
This is in RC4 for sure, and I may have seen it in RC5, so it may have not been fixed.
But the main idea is that the PHPSESSID should not be in the rel="canonical" URL, or otherwise it defeats the purpose of having rel="canonical" in the first place.
All the otherstuff (ie. #quickreply) has correctly been stripped out of the rel="canonical" URL.
shubha:
Same Issue . How to solve this problem.
emanuele:
Hello shubha,
in fact it shouldn't be particularly relevant: (known) bots don't see it (there is a check on that), so it should affects only non-(known)-bots and humans that visit your site. Humans wouldn't notice and it will affect only the first page view, non-(known)-bots can be reported somewhere somewhere here to update the script. :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version