Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I want PDF documents to open in a new window.
I set pattern matching as follows: "Include links matching the pattern: \.pdf"
This works fine and opens in a new window; it creates a blank space to the right of the link text where the external link icon should be shown, but no icon appears.
Comments
Comment #2
elachlan CreditAttribution: elachlan commentedPretty sure you target the parent element not the individual element. It then adds icons to all anchors inside the parent element.
Comment #3
elachlan CreditAttribution: elachlan commentedComment #4
potassiumchloride CreditAttribution: potassiumchloride commentedI have this same issue on 8.6-1.x.
I want to include links from example.com/documents but when I use the regular expression
[\b]documents.
all of the links open in a new tab but do not show the icon.