Author Topic: Make VM canonical URLs match the Joomla SEF url?  (Read 135 times)

maestroc

  • Beginner
  • *
  • Posts: 11
Make VM canonical URLs match the Joomla SEF url?
« on: March 20, 2020, 17:57:23 pm »
We are having a discussion/debate on whether this is something to be concerned about and/or if there is a way to fix it. On the following page:

https://xyz.com/freshwater-reels-2/spinning-reels

it has this canonical tag:

<link href="https://xyz.com/freshwater-reels-2/spinning-reels/view/category/virtuemart_category_id/19" rel="canonical" />

These canonical tags that do not match the SEF URL of the page and we want Google, etc. to index the SEF URL, not the non-sef VM one on the pages that appear in our menus.  We are concerned that there's a good chance that Google is seeing these two URLs (the SEF URL plus the canonical VM URL) as two different pages and considering that as duplicate content since it's the same page.  Is it possible to adjust the canonical tag in VM to match the navigational URL in Joomla?

As a second question, should this even be a concern?

Studio 42

  • Contributing Developer
  • Sr. Member
  • *
  • Posts: 4246
  • Joomla & Virtuemart developper
    • Studio 42 - Virtuemart & Joomla extentions
  • VirtueMart Version: 2.6 & 3
Re: Make VM canonical URLs match the Joomla SEF url?
« Reply #1 on: March 20, 2020, 21:23:41 pm »
Why you have such a canonical link ?
Do you disabled SEF inside VM config ?
Vm never write such SEF url by default !