The javascript regex string that matches the user/login string and replaces it with "user/login/lightbox2" is repeatedly matching the string and replacing it if there are any ajax calls triggered on the page.

I am running into this issue on Drupal 7.14 using Lightbox2 7.x-1.x-dev and the user menu in my theme, which displays the login and register links in the upper left. The result is the links starts to grow....

/user/login/lightbox2
/user/login/lightbox2/lightbox2.....
and so on.

This can be fixed by replacing the "?" at the end of the regex string on line 7 of lightbox_modal.js with a "$", which is the end of string anchor.

CommentFileSizeAuthor
#1 1708352-fix-user-login-link.patch0 byteslisa.rae

Comments

lisa.rae’s picture

Status: Active » Needs review
StatusFileSize
new0 bytes

Patch is attached