Topic: Direct link in linkURL does not work in Safari and IE [SOLVED]

I display images from many galleries in a "recent images" gallery. Each of them has a custom link to the same image in its original gallery, using a direct link via the linkURL attribute:
linkURL="link-to-the-gallery/#3" for the third picture for instance. This works fine in Firefox and Chrome, but not in Safari (desktop or mobile) nor IE.
It looks like the "/#3" (in the above example) is removed from the url.

Any idea why this is and if it can be fixed?

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

I have just created a sample gallery using direct link URLs for the linkURLs (as you describe) and it seems to work fine for myself in all browsers (including Safari 5.1.7 and IE11).
(I checked the opening of the linkURLs using both the 'Open Image' button on the Button Bar (showOpenButton="TRUE") and the imageClickMode="OPEN_URL" functionality.)

Make sure that you are using the most recent version of Juicebox-Pro (v1.4.1) to ensure that any bugs which may have been present in previous versions but which have since been fixed are not contributing to your problem.
If necessary, instructions for upgrading Juicebox-Pro can be found here.

If you continue to experience difficulties, please post the URL to your gallery so that I can take a look and help further.

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

Hi Steven,
Thank you for your quick reply.
My (stupid) mistake: the direct link was malformed: linkURL="link-to-the-gallery/#3" should be linkURL="link-to-the-gallery#3" (no slash).

Once corrected, everything works like a charm in all browsers…

Thanks again.

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

I'm glad that you have got your links working but, just for the record, in my own tests, the slash is required for Safari 5.1.7 on PC (although Safari on PC is more than a little outdated now, the last update being over two years).

The following formats should work in all browsers:

linkURL="http://www.example.com/gallery/#2"
linkURL="http://www.example.com/gallery/index.html#2"

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

Hmmm… Interesting. In my own tests with Safari (on Mac OX 10.9.3, iOS 7.1.1, PC Windows 7), using linkURL="http://www.example.com/gallery/#2" goes to http://www.example.com/gallery (the last part is removed), then eventually to http://www.example.com/gallery#1. You can even try it by typing such a url directly in the address bar.
I agree Safari is completely outdated on PC, but I was more concerned about iOS.

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

Both formats I posted above work in Safari 5.1.7 on PC and Mobile Safari on iOS 6.1.6.
If you find that:

linkURL="http://www.example.com/gallery/#2"

... does not work in one (or more) of your browsers, then it would be safer to use:

linkURL="http://www.example.com/gallery/index.html#2"

... which should work in all browsers.

Re: Direct link in linkURL does not work in Safari and IE [SOLVED]

Thanks Steven.
The problem is that I use Juicebox-pro on a drupal site where a url such as "http://www.example.com/gallery/index.html#2" won't work. It might be that I could play with the .htaccess file in order to make it work, but I'd rather not, as url management is already very complex (let alone the fact this is a multilingual site with url language prefix management).
Anyway, I don't seem to have a problem with the "http://www.example.com/gallery#2" kind of url on my site in any browser I have tested, so I'll go with this syntax.
Thanks again for your assistance.