renekreijveld / UserAgentDetector

This system plugin detects the user agent of your website visitor and sets a session variable accordingly.
15 stars 7 forks source link

Shornert URLS #6

Open MasterRouter opened 8 years ago

MasterRouter commented 8 years ago

Say google shortener, we have 2 versions of our website, one for desktops and one for mobiles/tablets, the thing is wen we copy the desktop url and paste it on Facebook to share it we our community, the problem is that the URL that gets pull is the mobile version instead of the desktop version, if we shorten the desktop url using the google shortner and then paste the short url into facebook it still pulling the mobile version... why is that?... out conditional is if is mobile OR tablet send the user to mobile version... we haven't made any changes for bots...

renekreijveld commented 8 years ago

Must confess I have no clue ... Do your desktop and mobile website have different URL's?

MasterRouter commented 8 years ago

Hi renekreijveld, yes it does, say foo.com for desktop and m.foo.com for mobile devises if you enter our site via desktop and copy/paste the url into facebook, you will see that the information that is pulled belongs to the mobile version, right now I'm working on getting canonical url's, but I'd like to fix this issue first... I haven't done anything with detecting bots and I have no idea if that is affecting on how in this case Facebook is pulling the information from URL's..