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.

CommentFileSizeAuthor
lightbox2-path_alias_fix.patch779 bytesthePanz
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stella’s picture

Priority: Critical » Normal
Status: Reviewed & tested by the community » Fixed

I've committed this, with a minor change. It will be available in the next dev release later today.

Cheers,
Stella

Anonymous’s picture

Now my problem is solved. Thanks!

stella’s picture

Released in Lightbox2 6.x-1.9 and 5.x-2.9.

Cheers,
Stella

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.