Support » Plugin: ThirstyAffiliates Affiliate Link Manager » ThirstyAffiliate is Breaking My Affiliate URLs

  • cbdinka

    (@cbdinka)


    Hey I’m trying to setup an affiliate site using ThirstyAffiliates to make my affiliate URLs friendly for users.

    However, when I save a link, the Destination URL changes from what I set it as, removing needed { } brackets.

    The end of the URL looks like
    %26affiliate_id%3D{affiliate_id}%26transaction_id%3D{transaction_id}
    when I input it.

    But after I hit “Save” it gets changed to
    %26affiliate_id%3Daffiliate_id%26transaction_id%3Dtransaction_id
    Which essentially breaks the tracking for my link.

    How can I fix this? Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • cbdinka

    (@cbdinka)

    It appears instead of encoding the brackets into

    %7d and %7b

    It just removes them all together. Way to fix this?
    Thanks

    Plugin Author Caseproof

    (@caseproof)

    Hi

    The link is passed through esc_url_raw before it’s saved in the database, which seems to strip out the { and } characters. Apparently these are “unsafe” characters for URLs, so I’d imagine that’s why they’re stripped out.

    Does it work if you replace the { } in the URLs with their encoded equivalents?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.