VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: kaiserdom on June 24, 2019, 16:37:13 PM

Title: 404 Error Handling and wrong Routing
Post by: kaiserdom on June 24, 2019, 16:37:13 PM
Hello
I can't make VM 404 error handling work in a proper way (so I use my own solution of Joomla 404 page). It always redirects me to the last visited category (the breadcrumbs are right) but the SEO urls remain the same. Prior to 3.4.2 version I had no problem, but now are all messed up. For example when I use a url that doesn't exist like www.everhome.gr/products/some-product-detail I get a 404 Error message but the category view layout is messed up and the url remains the same. In prior versions the redirection url would be: www.everhome.gr/products?error=404. What should I do to fix that?
VM 3.4.2
JM 3.9.8
PHP 7.1.3

Title: Re: 404 Error Handling and wrong Routing
Post by: StefanSTS on June 25, 2019, 08:00:05 AM
Hi,

there is a bug in error handling in VM 3.4.2. I have switched it off and use Joomla error handling. That works fine.

You could try the latest developement version on a test server. The problem was handled as far as I know, so testing it, before the next stable version comes out, could help.

Regards
Stefan
Title: Re: 404 Error Handling and wrong Routing
Post by: kaiserdom on June 25, 2019, 11:48:56 AM
Thank you, I'm already using Joomla error handling. The latest non stable version doesn't seem to do the trick. The matter is that the VM 404 Error handling seems to use kind of AJAX way to redirect the page, without replacing the non existent url with the redirected one and that confuses my Modules Manager and Category View Layout.

e.g.

www.everhome.gr/products/some-product-detail should point to: www.everhome.gr/products?error

Insted of that, it points to the initial non-existent url:  www.everhome.gr/products/some-product-detail

Title: Re: 404 Error Handling and wrong Routing
Post by: Milbo on June 25, 2019, 22:51:56 PM
It should show the last category.