Changeset 25673


Ignore:
Timestamp:
2012-05-24T14:11:40+12:00 (12 years ago)
Author:
sjm84
Message:

Links that only contain # values now have a macro added to the front of them, in Greenstone 2 this is defined to be empty, and in Greenstone 3 it is the current page's url (so that it works with the RESTful url style)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/HTMLPlugin.pm

    r25555 r25673  
    844844    $back =~ s/target=\"?_parent\"?//is;
    845845
    846     return $front . $link . $back if $link =~ m/^\#/s;
     846    if($link =~ m/^\#/s)
     847    {
     848        return $front . "_httpsamepagelink_" . $link . $back;   
     849    }
     850   
    847851    $link =~ s/\n/ /g;
    848852
     
    855859    $href =~ s/\\/\//g;
    856860    my ($filename) = $href =~ m/^(?:.*?):(?:\/\/)?(.*)/;
    857    
    858861
    859862    ##### leave all these links alone (they won't be picked up by intermediate
Note: See TracChangeset for help on using the changeset viewer.