VirtueMart Forum

VirtueMart 2 + 3 + 4 => Security (https) / Performance / SEO, SEF, URLs => Topic started by: djcritch on January 09, 2012, 00:08:52 AM

Title: 3rd level category creates a non sef URL ?
Post by: djcritch on January 09, 2012, 00:08:52 AM
3rd level category creates a non sef URL ?

when seo settings are switched on third level categories give me a url like this: /cat-level-1/cat-level-2/2012-01-07-00-28-178

The Sef Alias cannot be over written at this level :-(

is there a way around this?
Title: Re: 3rd level category creates a non sef URL ?
Post by: PRO on January 13, 2012, 18:32:34 PM
backup first, then run these 2 sql

this will also do all categories, so dont do it unless u dont mind some cats changing

update jos_virtuemart_categories_en_gb set slug = category_name

THEN, you need to change the "space" to a "-"

update jos_virtuemart_categories_en_gb set slug = replace(slug,' ', '-');
Title: Re: 3rd level category creates a non sef URL ?
Post by: djcritch on January 17, 2012, 11:47:39 AM
Thanks for this fix!

I presume that i will need to run these lines of sql every time i add a new 3rd level category though?

is there a more permanent fix other then this?

Title: Re: 3rd level category creates a non sef URL ?
Post by: PRO on January 17, 2012, 13:38:30 PM
no, u shouldnt,
Title: Re: 3rd level category creates a non sef URL ?
Post by: Milbo on January 20, 2012, 20:32:42 PM
This is also redesigned in the upcoming patch.