Needs review
Project:
Lightbox2
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Aug 2012 at 17:47 UTC
Updated:
1 Aug 2012 at 17:50 UTC
Jump to comment: Most recent file
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.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1708352-fix-user-login-link.patch | 0 bytes | lisa.rae |
Comments
Comment #1
lisa.rae commentedPatch is attached