VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: anihilator on October 29, 2016, 23:22:36 PM

Title: Weird internal redirect
Post by: anihilator on October 29, 2016, 23:22:36 PM
Hi,

VM 3.0.14
Joomla 3.5.1

I am facing weird behaviour of Virtuemart (or Joomla not sure). I have page https://www.silikonysro.cz/separatory/in-out-ii . This page is fine. When I choose product variant, URL change to different. Its fine, but internal problem happens and when I use F5 (reload page) with selected variant (no change), internal type of page changed from product to article and show me the article which is assigned only to above category page. What I think internal problem cause when URL change, Joomla or VM change type of page. I have correctly set-up module assignment (with that article) to show ONLY on category page. I dont want to display that article only when I change variant and reload (F5) is used, because Google can index it and then user via direct link from Google will see that article on wrong page.

I would really appreciate your help.
Best regards
Ondřej Meca
Title: Re: Weird internal redirect
Post by: kishoreonwork on October 29, 2016, 23:47:40 PM
Hello Ondřej Meca,


I can clearly see the itemid is changed when drop down  product variant are changed. Joomla sef url and module assessment are based on the itemid .
Initially the itemid is 1025 and when you change product it will become 552,
So you need to hide this article from 552.
Please inspect you menu manager and find out who is using 552 id and disable the article not to show on 552 id

Have a great day!

Thanks
Kishore
Title: Re: Weird internal redirect
Post by: anihilator on October 30, 2016, 00:10:13 AM
kishoreonwork

Hi, thanks for fast reply. Problem on this product is not single problem. Several products have same problem with same behaviour. For example https://www.silikonysro.cz/pristroje/rota%C4%8Dn%C3%AD-za%C5%99%C3%ADzen%C3%AD-2-detail , https://www.silikonysro.cz/pigmenty/pigment-ignite-6-detail . I dont have any menu specified for it, articles are specified by module where assigments are set to show ONLY for parent category page. Its seems that Joomla router or VM internal dispatcher dont know that different variant is the SAME page as the parent product of variant.
Title: Re: Weird internal redirect
Post by: jenkinhill on October 30, 2016, 00:49:00 AM
You should be using at least VirtueMart 3.0.16 with Joomla 3.5.1 and above.  http://dev.virtuemart.net/projects/virtuemart/files

You should also update your Joomla to the latest.   https://www.joomla.org/announcements/release-news/5678-joomla-3-6-4-released.html

Title: Re: Weird internal redirect
Post by: anihilator on October 30, 2016, 02:32:51 AM
jenkinhill
Thx for reply.

I can say, I cant do what you recommend me. I heavily changed core of VM and Joomla. Simply, I cant make pure update. If you know where FIX this issue, I would appreciate that. Otherwise, I need to accept it.
BTW, Im not new to programming and Im sure that I didn't change core of Joomla and VM that cause this behaviour.

Best regards
Ondřej Meca