VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: aayach on March 14, 2012, 11:55:17 AM

Title: Limitbox and SEO
Post by: aayach on March 14, 2012, 11:55:17 AM
Hi All,

After installing the update of VirtueMart (2.0.0 > 2.0.2 under Joomla 2.5.2) I experienced an issue with the limitbox !
When I switch the limit from the limit box, the url is changed to :
http://www.mysite.com/category/results,1-12.html

But the page is redirected to the VirtueMart home page, exiting the current category.

Notice that the SEO is activated.

After some investigation, I fixed the issue by making a little change in components\com_virtuemart\router.php

the function virtuemartParseRoute($segments) exits without setting the default view!
Here is the change :
I replaced the first

if (empty($segments)) return $vars ;

with

// set default viewto category view
if (empty($segments)) {
$vars['view'] = 'category';
$vars['virtuemart_category_id'] = $helper->activeMenu->virtuemart_category_id ;
return $vars;
}


Hope that helps.
Title: Re: Limitbox and SEO
Post by: achilleas on March 16, 2012, 14:26:11 PM
I have that problem too.
If you switch from the limit box it redirects you to the VM frontpage with "results,1-XX" parameter to the url.
Title: Re: Limitbox and SEO
Post by: achilleas on March 21, 2012, 15:43:16 PM
aayach that code didn't helped me. The problem is still there.
Do we have any news from the devs about this?