Don't absolutify # and mailto hrefs
This commit is contained in:
parent
4fdc8b1798
commit
80e1f1e0ea
1 changed files with 10 additions and 11 deletions
|
|
@ -130,8 +130,7 @@ sub absolutifyURIs {
|
|||
|
||||
foreach my $link ( @{ $root->extract_links } ) {
|
||||
my ($uri, $element, $attr, $tag) = @{ $link };
|
||||
|
||||
if ( $uri !~ m{ ^ [a-z]+:// }xmsi ) {
|
||||
if ( $uri !~ m{ ^ (?: [a-z]+:// | \# | mailto: ) }xmsi ) {
|
||||
my $new =
|
||||
( $uri =~ m{ ^ / }xmsi ) # Is url absolute?
|
||||
? $siteUrl . $uri
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue