Only open lightbox by query string on Gallery pages
Fixes ajax requests not going to the JSON Api endpoint