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.

image_transcoder.php?o=sys_images_editor&h=3016&dpx=2&t=1772122876

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.

  • 94
  • More
Replies (2)
    • 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.

      • Hello. The issue was fixed here: https://github.com/unacms/UNA/issues/5409

        Login or Join to comment.