Urls found in spider search

  • Posts: 104
  • Thank you received: 5
7 years 7 months ago #266509

-- url of the page with the problem -- : www.p3proswing.com
-- HikaShop version -- : 2.6.3
-- Joomla version -- : 3.6.5

We have a company doing an SEO audit on our site. Our site is in a subdomain and the subdomain name seems to be getting replicated in the results. For instance, we have this page: www.p3proswing.com/site3/products/indoor...small-hitting-center

It displays fine online without issue.

The SEO audit is showing this page as multiple levels:

https://www.p3proswing.com/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
https://www.p3proswing.com/site3/site3/site3/site3/site3/site3/site3/site3/site3/site3/products/indoor-golf-cages/product/16-small-hitting-center
You'll note that when you attempt to navigate to some of these pages, it is not going to the actual page for this product.

I'm unsure if this is something wrong with Hikashop or somewhere else, but since the majority of them are Hikashop links, I wanted to check to see if you had seen this before and what the culprit could be.

Please Log in or Create an account to join the conversation.

  • Posts: 82906
  • Thank you received: 13378
  • MODERATOR
7 years 7 months ago #266540

Hi,

I don't know how you got these links. But as far as I could test, besides the first one, all the others do not work.
Only the first one goes to the product page.
I don't see why HikaShop would generate these links.
I've never seen that.
It looks like something linked to the SEF. Normally, these URLs should generate 404 errors, like www.p3proswing.com/site3/blabla

Please Log in or Create an account to join the conversation.

  • Posts: 104
  • Thank you received: 5
7 years 7 months ago #267869

Hi Nicholas,

We're still digging in on this and I found where the issue exists. If you go to https://www.p3proswing.com/site3/prox-lite/checkout/notice/cart_type-wishlist/tmpl-component and view the source code, you will find that HikaShop is creating a canonical link that is incorrect.

<link href="https://www.p3proswing.com/site3/site3/prox-lite/checkout/notice/cart_type-wishlist/tmpl-component" rel="canonical" />

I tried inserting the code to remove canonical links from the site:
$doc = JFactory::getDocument();
 foreach ( $doc->_links as $k => $array ) {
 if ( $array['relation'] == 'canonical' ) {
 unset($doc->_links[$k]);
 }
 }

which I found here , but I don't think that the index.php file is used in the checkout popup so it does not effect that link creation.

Any help to resolve this issue would be greatly appreciated.

Thanks,
Chuck W.

Please Log in or Create an account to join the conversation.

  • Posts: 26159
  • Thank you received: 4028
  • MODERATOR
7 years 7 months ago #267872

Hello,

Please note that "checkout / notice" is now deprecated in HikaShop 3.x ; that view is still in the "legacy" mode of HikaShop but is not use anymore but the new system.

Afterwards, I don't see any code in HikaShop 3.x or in HikaShop 2.6.3 which indicate that the canonical URL is generated.
But I can see something at the very beginning in the view

$doc = JFactory::getDocument();
$doc->setMetaData( 'robots', 'noindex' );
So the page should not be indexed by robots or else.

And I opened the same page as you in my local website and in our demo website
https://demo.hikashop.com/index.php/en/hikashop/products-listing/display-in-list/checkout/notice/cart_type-wishlist/tmpl-component
There is no any mention of "canonical".
So, as Nicolas noticed previously, it is not HikaShop which generate that but something else

I don't see why HikaShop would generate these links.
I've never seen that.
It looks like something linked to the SEF.

And that's very simple to verify ; if you take any page in your website you will see
<!doctype html>
<html xmlns:fb="https://www.facebook.com/2008/fbml" xmlns:og="http://ogp.me/ns# " xmlns:fb="http://ogp.me/ns/fb#" xml:lang="en-gb" lang="en-gb" >
<head>
	<link rel="canonical" href="http://www.p3proswing.com/site3/pro-economy/product" />
  		<meta name="viewport" content="width=device-width, initial-scale=1.0">
With the canonical define at the very first element in the head.

While in your "notice", you can see strange things :
	<!doctype html>
	<html xml:lang="en-gb" lang="en-gb" >
		<head>
						<meta name="viewport" content="width=device-width, initial-scale=1.0">
And with the canonical later, with reversed parameters between "rel" and "href"
	<title>ProX Lite</title>
	<link href="https://www.p3proswing.com/site3/site3/prox-lite/checkout/notice/cart_type-wishlist/tmpl-component" rel="canonical" />

Due to the unconsitency and while HikaShop is using Joomla core to push his data (and there is no canonical generated for that page) ; I'm sorry but that's not related to our component and our support.
I hope that you will find the source of your issue.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

Time to create page: 0.066 seconds
Powered by Kunena Forum