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.
Using the "Page specifica Lightbox2 setting" I typed something like "fun/*" but Lightbox2 didn't recognize my page "fun/some-jokes". My further investigations reveal that in $_GET['q'] Drupal passed "node/20932".
Using drupal_get_path_alias() you can retrieve the alias (if exists). Using that edit you can match aliased/unaliased paths for exclude/include lightbox2 JS loading.
Comment | File | Size | Author |
---|---|---|---|
lightbox2-path_alias_fix.patch | 779 bytes | thePanz |
Comments
Comment #1
stella CreditAttribution: stella commentedI've committed this, with a minor change. It will be available in the next dev release later today.
Cheers,
Stella
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedNow my problem is solved. Thanks!
Comment #3
stella CreditAttribution: stella commentedReleased in Lightbox2 6.x-1.9 and 5.x-2.9.
Cheers,
Stella