cancel
Showing results for 
Search instead for 
Did you mean: 

Product url not full, not returning category path.I'm using Magento 1.9.x

Product url not full, not returning category path.I'm using Magento 1.9.x

Hi everyone,

In product page(inner) product urls doesn't have category path

example: http://website.com/product.html (should be only in home page)

should be: http://website.com/category/subcategory/product.html (when you are in a category of course)

 

I have done the following steps:

1. Truncated core_url_rewrites table

2. Reindexed everything

3. Cleared cache.

4. Enabled Use product category path in urls

5. Reindexed everything

6. Cleared cache.

 

Nothing fixed my issue. Can anyone help me with this one?

7 REPLIES 7

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

Hi @sargis_torosyan

 

Looks like you have tried all the options as mention in your question , still  here i am giving one suggestion which might helps you on the same.

 

From magento backend - go to System->Config->Catalog->SEO

 

Then Enable canonical URLs for Categories from the option like Use canonical link meta tag for categories

 

Here is the ref link - https://magento.stackexchange.com/questions/80860/force-only-category-url

 

Then check it might works for you.

 

P.S - its just suggestion , there might be a chance in your system if  you have customized this product page part  or any extension which effects to this product page on URL part

 

Hope it helps 

 

 

if issue solved,Click Kudos & Accept as Solution

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

Thanks for reply.

 

Nope. That didn't fix my issue

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

Hi @sargis_torosyan,

 

Can you share this section of your store configuration?

 

Selección_005.png

 

 

 

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

Hello to anyone. I have the same problem as I use owl slider in magento and in homepage I get url without the caregory of the product. Also, the same problem happens in search list. Any solution finally?
Thanks

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

Hi @fxp869 

 

You got the error on every Magento link or only with OwlSlider links?

Is there a public URL you can share?

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

We are experiencing the same issue. Not sure when it happened but it came to light when we generated a new sitemap. 

 

Would be very interested to see if there is a solution posted here. 

Re: Product url not full, not returning category path.I'm using Magento 1.9.x

It is from my understanding that the Magento page structure works like this - 

 

When you make a simple product or grouped product this will create the following URL structure which we will name 'root'.

 

yourdomain.com/simple-or-grouped-item

 

Now, if you add this to a category and subcategory you will create an additional URL.

 

yourdomain.com/category/subcategory/simple-or-grouped-item

 

Both URLs exist.

 

You need your canonical tag from the 'root' URL to reference your category/subcategory URL.

 

yourdomain.com/simple-or-grouped-item -----> Conanical tag references category/subcategory

 

yourdomain.com/category/subcategory/simple-or-grouped-item -----> Conanical tag references itself

 

Please, can somebody clarify that this is correct? Or should I be trying to remove these 'root' URLs?