Support » Plugin: Simple URLs » Issue with brackets in affiliate URLs

  • Hi,

    I’m seeing an issue with affiliate URLs which are using brackets for parameters. The brackets seem to confuse Simple URLs in its interpreting of query parameters.

    European affiliate network Zanox uses this format for deeplink URLs: (url encoded because Codex insists on mangling the brackets as well, sigh …)


    When using this redirect URL in Simple URLs, the resulting redirected URL is: (which results in an error page)

    Please notice the wrong interpretation/order of the query parameters (ampersand first and question mark 2nd). This only happens with these brackets redirect URLs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Just hit the same issue. And it is not only Zanox, I have other networks using round brackets in the URLs.

    Did you make any progress on a work around or anything?

    I’ve read this other thread on the plugin and someon dealing with an encoding of the pipe character.

    However the affiliate networks interstitial servers do not seem to like ( and ) supplied as encoded characters either, it needs them sent as brackets.

    My only workaround now is to feed Simple URL’s a shortened link (via bitly) of the affiliate link. So far this only affects Zanox platform for me. It’s an extra (unwanted) redirect), but better than nothing.

    Thus Zanox > Bitly > Simple URLs

    Plugin Author Ron Rennick


    MultiSite Guru

    The wp_redirect function strips out unsafe characters.

    A { can be used to inject code so it is one of the characters stripped out.

    Does this also apply to straight brackets? [ ] That’s our issue. And is there a way to override the function?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with brackets in affiliate URLs’ is closed to new replies.