I'm using the option "The gallery will open the ImageBrowser instead the effect" and as result I have the following permalinks:
I have also on the page a facebook plugin (SFC). When you click on "Like" this plugin use get_permalink and you like "mysite.com/gallery/"
I'd like to change the permanlink to the specific image (mysite.com/gallery/?pid=1). My site will display party pics and I'm sure visitors want to like/share the picture where they are actually showing up and not the full gallery.
I tried to change this line without success.
if (empty($url)) $url = get_permalink($id);
Thanks in advance!