Support » Plugin: AMP » rel=noopener for target=_blank

  • Resolved kundun12



    In my posts, I add some link to other sites with target=”_blank” rel=”noopener”. these links are included in the content. But on my amp posts, the attribut re=”noopener” disappears. I’m using the function $this->get( ‘post_amp_content’ );

    But the attribut rel=”noopener” can help to prevent phishing. So there is a way to hand over this attribut?

    Thank you by advance

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


    I cannot reproduce the problem. Share the URL to the page that has the problem.

    Thank you for your feedback, I did some other tests and you are totally right.

    The attribut rel=”noopener” disappears when I activate the plugin “Glue for Yoast SEO & AMP”.

    if ( ‘rel’ === $attribute_name && ‘nofollow’ !== $attribute->value ) {
    $node->removeAttribute( $attribute_name );

    I’m sending an email to the plugin author

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘rel=noopener for target=_blank’ is closed to new replies.