FREE Get a FREE template when you purchase Social bundle 🚀 ⚡️

Helpdesk

Your Time
Our Time
Response Time
24 — 48 hours
We strive to provide the fastest ever response possible. However, we are not super beings.

Allow at least 24 — 48 hours
  Support is online
Our support specialists is available now. We will attend to you as soon as we can.
  Support is online

Canonical URL wrong on home page(s)

Christopher Ambler · ·
7:41 AM Saturday, 31 October 2020
Normal
It would seem that any page that uses the frontpage view picks up the wrong canonical URL.

In views.php, the URL being passed in for such pages has the option but no more information. It is then routed to the appropriate menu item. In my case, that's the one with the alias of "entry." Whether I pick default or a specific menu ID, it always picks up SOME menu item.

But since this is the home page of the site, the canonical URL should not have a path. It should be the root url.

Here is some debug output I made in views.php:

Pre URL: index.php?option=com_easyblog
Post URL: https://www.retrograde.today/entry

As you can see, the URL in is the component only, as it is coming from my home page which is of type Easyblog/frontpage.

The canonical URL being set should be simply https:/http://www.retrograde.today

--

The IDEAL solution would be an option on the menu item to OVERRIDE the canonical URL for that menu item. I'd then set it to the URL for the site and be done.

Either way, the canonical URL as set now is wrong.
The replies under this section are restricted to logged in users or users with an active subscription with us