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.
A minor problem: when Drupal is installed in a user's ~/public_html, the small arrows beside the "Sort by" links do not show up, because the generated links pointing at the wrong location. Attached you find a patch, which essentially changes the links to the images to relative ones.
Comment | File | Size | Author |
---|---|---|---|
biblio.pages_.inc_.diff | 986 bytes | lifepillar | |
Comments
Comment #1
rjerome CreditAttribution: rjerome commentedI had it like that before, but I think there will still be a problem if you apply any filters.
Comment #2
lifepillar CreditAttribution: lifepillar commentedYou're right... But maybe there is a way to generate a link that works in every case?
Comment #3
rjerome CreditAttribution: rjerome commentedCould you try adding the "$base_path" global as shown below...
or this diff...
Comment #4
lifepillar CreditAttribution: lifepillar commentedOf course, it should be:
$order_arrow = ($order == 'asc') ? '<img src ="'.$base_path.$path.'/arrow-asc.png" alt =" (Desc)" />':'<img src ="'.$base_path.$path.'/arrow-desc.png" alt = " (Asc)" />';
Yes, that works for me, thank you.
Comment #5
rjerome CreditAttribution: rjerome commentedRight you are! This has been committed to the -dev branch and will be subsequent releases.
Ron.
Comment #6
xoxox CreditAttribution: xoxox commentedhow to apply the patch?
Comment #7
rjerome CreditAttribution: rjerome commentedYou can download and install the -dev version just like 1.5 version and then when 1.6 comes out, you can go back to the release version.