Author Topic: Wrong URLs in spanish and french shop versions since VM 3.2.0. update  (Read 655 times)

jaumearagay

  • Beginner
  • *
  • Posts: 7
  • A beginner
I had set the menu items for the main page in every language to what I wanted ("tienda" in spanish and "boutique" in french) instead of "shop" and it worked properly.

Since the VM 3.2.0. update when I go to product categories page or product detail pages I get the "shop" particle instead of "tienda" or "boutique" in the URL having these URLs: "mysite.com/fr/boutique" BUT "mysite.com/fr/shop/cds" and "mysite.com/fr/shop/cds/my-first-cd". The same for main language, spanish:  "mysite.com/tienda" BUT  "mysite.com/shop/cds" and "mysite.com/shop/cds/my-first-cd". I have the latest Joomla version: J3.6.5.

I have purged the Joomla caches. Do I have to refresh anything else?

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #1 on: March 26, 2017, 14:06:22 pm »
Hi,
try to use category as shop main page with no category and manufacturer selected.
Because main Virtuemart page is obselete, it's possible it work better.

jaumearagay

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #2 on: March 29, 2017, 12:19:33 pm »
Before the last update it worked properly...  :'(

Now doing as you say I get the right slug for the shop main page as I did after the update, but for the categories I get the category slug in the URL as "hanging" from the home page instead of showing the shop part of the slug:

I get "mysite.com/tienda" BUT  "mysite.com/cds" (it was "mysite.com/shop/cds"after the last update) but should be "mysite.com/tienda/cds"
and I get "mysite.com/cds/my-first-cd" (it was "mysite.com/shop/cds/my-first-cd" after the last update) but should be "mysite.com/tienda/cds/my-first-cd".

So, thank you, but your idea does not solve the issue. It changes it to a different one. It's better than before, but not fully solved.

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #3 on: March 30, 2017, 01:10:59 am »
This depend your menu too.
VM use Joomla menu for the first part and internal category tree after.
So if you need to display mysite.com/shop/cds and have set shop in one menu and cds in another menu
you get mysite.com/cds
SO you have to use Joomla menu tree :
shop
->cds

OR no Joomla menu links for cds part (using the category module for eg for links)

Note that now in VM you can have simplified category links or full links(including all parent cat in the link), perhaps your problem can be because before you used full links and now simplified category links ?
You have to check your VM config.

Milbo

  • Virtuemart Projectleader
  • Administrator
  • Super Hero
  • *
  • Posts: 9327
  • VM3.2 Cached and Optimized
    • VM3 Extensions
  • VirtueMart Version: VirtueMart 3 on joomla 3
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #4 on: March 30, 2017, 22:24:00 pm »
I am not really good in SEO, but I think your Urls are better.
I should fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

lindapowers

  • Full Member
  • ***
  • Posts: 1335
  • If you're going through hell, keep going.
    • Venta de naranjas online y mandarinas
  • Skype Name: manu.gonzalez91
  • VirtueMart Version: Latest avi
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #5 on: March 31, 2017, 06:57:19 am »
Before the last update it worked properly...  :'(

Now doing as you say I get the right slug for the shop main page as I did after the update, but for the categories I get the category slug in the URL as "hanging" from the home page instead of showing the shop part of the slug:

I get "mysite.com/tienda" BUT  "mysite.com/cds" (it was "mysite.com/shop/cds"after the last update) but should be "mysite.com/tienda/cds"
and I get "mysite.com/cds/my-first-cd" (it was "mysite.com/shop/cds/my-first-cd" after the last update) but should be "mysite.com/tienda/cds/my-first-cd".

So, thank you, but your idea does not solve the issue. It changes it to a different one. It's better than before, but not fully solved.

There is something interesting about this.

If you have a menu created to a concrete category and you access it via the category module the link displayed is without the main top level category item. (what he calls shop or tienda).

However if you don't have the menu item created it displays the full url including the "shop" (top level category item).

Still the long url with the "shop" menu item is accesible but if you type it the shorten url is set as canonical.

At least this is the effect for us.

I don't see any problem with it, actually I like it that it gets rid of the "shop" link for categories which is basicly useless but may not be desirable for all.
http://www.comenaranjas.com - Navel oranges and clementines from Spain

jaumearagay

  • Beginner
  • *
  • Posts: 7
  • A beginner
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #6 on: April 26, 2017, 16:12:10 pm »
New twist in the plot!

I've linked the spanish and french versions of the menu items so when I move from one language to the other the page changes to the right one BUT when you are seeing a product detail page and change the language it links back to the main page in the other language. Is there a way to link the detail pages in the different languages or is this a new bug?

Studio 42

  • Contributing Developer
  • Full Member
  • *
  • Posts: 2182
  • Joomla & Virtuemart addon developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3.0.x.y
Re: Wrong URLs in spanish and french shop versions since VM 3.2.0. update
« Reply #7 on: April 26, 2017, 16:43:38 pm »
Current oNly using my module, language switching is working for products and Category.
See http://shop.st42.fr/en/products/multi-language-for-virtuemart.htm
Note that with my module, you don't have to associate any categories. It only have to exist and translated.