[Done v1.3.9b] zenid added to the canonical element if first click is a linked prod
I noticed that, If my first entry point to the store is a product page, then the zen id is added at the end of the canonical element. I tested it a few times by deleting my cookies then pasting the entry link in the address bar.
I don't know if it's a bug worth mentioning.
What do you think ?
Thanks
Re: zenid added at the end of the canonical element if first click is a linked produc
v1.3.9a / v1.3.9b
Quote:
Originally Posted by
djdavedawson
I noticed that, If my first entry point to the store is a product page, then the zen id is added at the end of the canonical element. I tested it a few times by deleting my cookies then pasting the entry link in the address bar.
To stop that behavior, simply edit init_canonical.php and change the closing ');' on both calls to zen_href_link() from ");" to the following instead:
Code:
, 'NONSSL', false);
Re: zenid added at the end of the canonical element if first click is a linked produc
I also wouldn't worry too much about it. If Google is your target, they believe that they're very good at spotting session IDs appended to links and taking account of them.
In one blog post they even went so far as to advise site developers not to remove them, basically because they thought they could do it better!
Re: [Done]zenid added at the end of the canonical element if first click is a linked
Thank you
This worked
PHP Code:
, 'NONSSL', false);
Re: [Done]zenid added at the end of the canonical element if first click is a linked
Quote:
Originally Posted by
djdavedawson
Thank you
This worked
PHP Code:
, 'NONSSL', false);
Which file do I need to change? /includes/init_includes/init_canonical.php?
Not sure what I am missing, I don't see where to make the change :(
Re: [Done]zenid added at the end of the canonical element if first click is a linked
Change this:
PHP Code:
$canonicalLink = zen_href_link($current_page, 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&products_id=' . $_GET['products_id']);
To this:
PHP Code:
$canonicalLink = zen_href_link($current_page, 'cPath=' . zen_get_generated_category_path_rev(zen_get_products_category_id($_GET['products_id'])) . '&products_id=' . $_GET['products_id'], 'NONSSL', false);