Absolute-to-Relative URLs
[resolved] Plugin destroys canonical-tag (2 posts)

  1. gerobe
    Posted 4 years ago #

    The plugin also tries to shorten the canonical tag (e.g. inserted with plugins like WP SEO), which results in a wrong canonical syntax.

    Without "Absolute-to-Relative URLs" the tag looks like

    <link rel="canonical" href="http://www.nameofwebsite.com/post_slug/" />

    when enabling the plugin and also the plugin wp-minify this tag is destroyed into

    <link rel="canonical" href="./" />


  2. Steven Vachon
    Plugin Author

    Posted 3 years ago #

    This is more an issue for WP-HTML-Compression, but anyway..

    Canonical URLs can be relative:
    (scroll down a bit, or do a search for "relative")

    But, yes, they do recommend making them absolute to avoid "difficulties". So, I'll add this to the next version of WP-HTML-Compression.

    Thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Absolute-to-Relative URLs
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic