Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Lightbox.js image links tracked mistakenly as Outbound links

stormy
Minted
Posted on Jan 14, '08 at 05:09 pm

I recently implemented lightbox.js to display my photographs. I’ve noticed that clicks on this are tracked as Outbound links in the Outbound pepper, with a blank destination link.

I’d say this qualifies as a bug. Any comments?

Shaun Inman
Mint/Pepper Developer
Posted on Jan 15, '08 at 09:31 am

Looks like you have an unclosed <a> somewhere in your source code. That would explain it.

stormy
Minted
Posted on Jan 15, '08 at 08:21 pm

Thanks for catching that! (By the way, how did you know that was the problem page?).

However, I have the feeling that was not the cause of the problem. I will report back with my findings

mitchoyoshitaka
Pepper Developer
Posted on Jan 16, '08 at 02:41 am

Hm, I have the same issue on my site, and I also don’t think it’s due to unclosed anchors… Hm…

Shaun Inman
Mint/Pepper Developer
Posted on Jan 16, '08 at 10:37 am

@stormy, it was the first page linked from your blog that used lightbox.

@mitcho, but you are missing a closing </head> tag. As soon as the DOM is invalidated (regardless of what type of closing tag is missing or improperly nested DOM reliability goes out the window.)

And that’s why we validate. :)

stormy
Minted
Posted on Jan 27, '08 at 06:47 pm

I’ve had this happen again on a valid page. Or, to be strict, a page that is valid except for the YouTube embed code. Would that explain the problem?

Shaun Inman
Mint/Pepper Developer
Posted on Jan 28, '08 at 10:11 am

Nope, but if you post a link, I’ll take a look.

stormy
Minted
Posted on Jan 28, '08 at 02:24 pm

Here’s the page with the problem: stormymondays.com/rainydays/2008/01/la- … s-war.html

Shaun Inman
Mint/Pepper Developer
Posted on Jan 30, '08 at 10:15 am

Have you tried temporarily removing the invalid code and seeing if the problem persists? I will see if I can duplicate this problem this afternoon. What version of lighbox are you using? (I don’t see Lightbox.js in your source.)

stormy
Minted
Posted on Jan 30, '08 at 05:01 pm

I’m not really that worried now that the problem is very localized. I’m using a wordpress plugin that uses “Slimbox”, a smaller lightbox clone.

You must be logged in to reply. Login above or create an account