WordPress.org

Ready to get started?Download WordPress

Forums

WP-HTML-Compression
[resolved] Destroys canonical-tag (3 posts)

  1. gerobe
    Member
    Posted 2 years ago #

    I just found out, that the plugin destroys the canonical tag e.g. inserted by plugins like WP-SEO.

    Without wp-minify the tag looks like

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

    when enabling wp-minify this tag is destroyed into

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

    http://wordpress.org/extend/plugins/wp-html-compression/

  2. Steven Vachon
    Member
    Plugin Author

    Posted 1 year ago #

    Canonical URLs can be relative:
    http://support.google.com/webmasters/bin/answer.py?hl=en&answer=139394
    (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 in the next version.

    Thank you

  3. gerobe
    Member
    Posted 1 year ago #

    Thank you for fixing this!

    Actually the canonical tags weren't relative. They were all chopped to ./

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic