Hi,

I need to open an url in Colorbox which contains # and ;
It seems colorbox can't handle these kind of characters.

When I use the following HTML colorbox doesn't opens the website:
<a class="colorbox-load" href="http://example.com/#trigger;process=car;instance=12?width=1400&height=900&iframe=true"">Open in Colorbox</a>

When I use:
<a class="colorbox-load" href="http://example.com?width=1400&height=900&iframe=true"">Open in Colorbox</a>
the site opens as expected.

Of course I need the first URL to work. Anybody a clue to fix this?

Thanks!

Comments

pvanerk’s picture

Status: Active » Closed (won't fix)

Okay, I figured it out. It was exactly not a problem from the Colorbox (however, it wouldn't have been a problem when the parameters for width, height and iframe where not part of the URL but passed another way).

When Colorbox opens the target website, it opens the complete URL (with all the parameters necessary for the Colorbox like width, height and iframe). Some websites cannot cope with these parameters (and in essence Colorbox should pass these parameters because they are not intended for the target website, say for example the target website also needs the parameters width, height and so on how are you gonna pass these in the URL).

I patched the colorbox quite ugly. I will create a bug report and place the patch there.

Bug report: #1716938: The parameters for width, height ... should not be passed in the URL. Target website cannot open with these parameters in the UR

pvanerk’s picture

Issue summary: View changes

typo