VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: Menace on February 22, 2015, 11:17:11 AM

Title: Problem with SEF URLs for products with multiple categories
Post by: Menace on February 22, 2015, 11:17:11 AM
Hi,

I'm using VM 3.0.6 and J! 3.3.6.

I have products in multiple categories and the following thing happens regarding URL:

For example I have a product in category 'shirts' and in category 'sale'.

1. I browse through category 'shirts' and everything is fine. SEF URL is 'sitename/shirts/productname'
2. I navigate to category 'sale' the product that is in categories 'shirts and 'sale' still point to 'sitename/shirts/productname'.
3. I reload page by clicking 'sale' in navigation bar again and then URLs for the shirt changes to 'sitename/sale/productname'

Is this a caching problem or what could it be?

It is very confusing for customers as when the product is clicked the highlighted navigation point changes and of course the 'back to category' button shows the category user wasn't browsing through before.
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: 2cool on August 20, 2015, 20:31:28 PM
Same problem with latest version Joomla 3.4.3 and virtuemart  3.0.9.4
Anyone have a solution or what to check? Been crawling forum and google without clear results?
Working local so sorry no url...any help is appreciated.

Thanks, Pas
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: jjk on August 21, 2015, 22:41:56 PM
I'm not sure, but it might be a problem with the broken Joomla router or the VM router. Both have been updated after the latest stable releases. When I test that behavior with Joomla 3.5.dev version and the latest VM 3.0.10.dev it keeps the selected category in the SEF URL.
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: 2cool on August 22, 2015, 10:30:34 AM
Sounds great,
Was reading this: http://forum.virtuemart.net/index.php?topic=128428.0
Is is possible to check this latest versions? or will this be released soon?

Regards,

Pas
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: jjk on August 22, 2015, 13:33:33 PM
The latest devlopment versions (nightly builds) of Joomla are available here: http://developer.joomla.org/cms-packages/
A new VM version is might be released soon.
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: 2cool on August 27, 2015, 15:39:50 PM
Thanks for this info!
But how can I check which file should be replaced and how should this be done?
Is it possible to just replace the Joomla and VM router one by one??

Thanks,

Pas
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: maks on October 12, 2015, 14:23:22 PM
Is this solved?
I have latest VM 3.0.10 and latest Joomla. This problem is still here.
product1 have assigned 2 categories, category1 and category2 (in this order)

I have menu item for both categories.

Url for product in category1 is domain.com/category1/product1-details (this is corect url)
Url in category2 is domain.com/category2/product1-datails (this is wrong)

If this is not solved, is major SEO problem and multi category function is useles.
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: biltong on March 24, 2016, 11:54:29 AM
Anybody know if this has been resolved?
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: 2cool on March 24, 2016, 12:02:33 PM
Not that I know. But using this works for me.
http://forum.virtuemart.net/index.php?topic=88290.30
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: PRO on March 24, 2016, 21:09:11 PM
i do not get this on my site
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: Studio 42 on March 25, 2016, 01:43:12 AM
I have some issue to.
So i don't use generated product URL, but redo manually the link with the category i'm in, getting the posted category.
Since, i have never any problem, with bad categories links,i had this in vm 3.0.9 and 3.0.12 but since 3.0.14 i use my trick in categories.
Title: Re: Problem with SEF URLs for products with multiple categories
Post by: biltong on April 08, 2016, 13:53:29 PM
Thanks for the feedback guys....

2cool, that looks like a VM1.x fix, surely not approproiate for VM3?

Quote from: 2cool on March 24, 2016, 12:02:33 PM
Not that I know. But using this works for me.
http://forum.virtuemart.net/index.php?topic=88290.30