In the update 15.0.0-B1, incorrect canonical URLs are specified.
After the update 15.0.0-B1, many pages have incorrect canonical URLs specified.
Can this be fixed in any way right now? If yes, how can I do that? I don't want to restore it. It's just that this is a serious problem; the reaction from search engines to this is unpredictable, but definitely in a negative way.
-
- · Ivan Mishchenko
- ·
I changed the line in the file inc/classes/BxDolTemplate.php:
if($sUrl) $sRet .= '<link rel="canonical" href="' . $sUrl . '" />';to the version from UNA 14:
if (!empty($this->aPage['url'])) { $sRet .= '<link rel="canonical" href="' . bx_absolute_url(BxDolPermalinks::getInstance()->permalink($this->aPage['url'])) . '" />'; }It seems that now all links are correct. But I don't know how right this solution is.
-
-
·
Anton L
- ·
Hello. The issue was fixed here: https://github.com/unacms/UNA/issues/5409
-
·
Anton L