• Resolved Akki

    (@luckyankit)


    Getting error

    Malformed URL 'https://IP:port/folder/' for attribute 'href' in tag 'a'.

    in the AMP test for a URL which is basically the content. How do I fix this?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    This is the problematic markup:

    <a href="https://IP:port/folder/" rel="nofollow noopener" data-wpel-link="external" target="_blank" class="wpel-icon-right">https://IP:port/folder/<span class="wpel-icon wpel-image wpel-icon-6"></span></a>

    You need to change the page to not have that be an actual link. Perhaps wrapping it in <code> tags will fix that.

    I tried adding that markup to a post but I was unable to reproduce the issue. This should have been prevented from leaking to the frontend in v1.3 via https://github.com/ampproject/amp-wp/pull/3151

    Updating to the latest version should prevent the error from leaking to the frontend.

    Thread Starter Akki

    (@luckyankit)

    Thanks will update the plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘AMP Tester showing error because of page content’ is closed to new replies.