Helpdesk

Canonical URL wrong on home page(s)

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.

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Your time
Stack Ideas HQ
Support is
Offline

It is currently a weekend from where we are at. Some answers may already be available on our documentation

Rest assured that we will get back to your posts as soon as the week starts!

Buy Us Coffee

Are you happy with our support and would like to buy us a cup of coffee?

$
Enjoy the Coffee!
Service via PayPal
Subscribe for product updates & promotions