Bug with Fancybox inline content combined with <base> tag

230 views
Skip to first unread message

mosymuis

unread,
Mar 10, 2009, 4:29:26 AM3/10/09
to fancybox
When Fancybox is used to show inline content from a #div in a popup on
a page with a <base> tag, the target contains the full URL wich
therefore doesnt applies to the ID from the wanted div.

Here is a fix:

->After:
var target = window.location.href.split('#')[0]; target = href.replace
(target, '');

->Add:
target = target.substr(target.indexOf('#'));

Janis

unread,
Mar 10, 2009, 4:49:09 AM3/10/09
to fancybox
Thanks, I`ll add this fix to v.1.2.1

Janis
Reply all
Reply to author
Forward
0 new messages