[wp-trac] [WordPress Trac] #34614: Wordpress breaks Amazon affiliate link tracking

WordPress Trac noreply at wordpress.org
Sat Nov 7 15:33:28 UTC 2015


#34614: Wordpress breaks Amazon affiliate link tracking
---------------------------+------------------------------
 Reporter:  cookieandkate  |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Editor         |     Version:  trunk
 Severity:  normal         |  Resolution:  worksforme
 Keywords:                 |     Focuses:  ui
---------------------------+------------------------------
Changes (by nullvariable):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Hi cookieandkate,

 What you're experiencing is normal behavior for links all over the web.
 The ampersand is a special, reserved character in HTML, to ensure that
 it's understood by browsers properly, the ampersand should never be used
 alone. A browser can't be sure what you mean if an amperspand is followed
 by what are considered ambiguous characters (ie something not defined in
 the standard), so all ampersand characters should be encoded. Here's some
 more info on the technical standard:
 http://www.w3.org/TR/html5/syntax.html#syntax-ambiguous-ampersand

 When you click a link with an encoded ampersand, your browser will convert
 the `&` notation into the correct ampersand symbol only, removing the
 `&` from the link and replacing it with `&` before sending it to the
 server. All of your links should work correctly, and you should be able to
 confirm this by clicking the link and taking a look at it after you land
 on the Amazon page.

 Here's a link to the WordPress Codex that explains a bit about how
 WordPress sanitizes URLs: https://codex.wordpress.org/Data_Validation#URLs

 You can disable this feature in WordPress by removing the appropriate
 filter from your posts, but you will be putting yourself at high risk with
 security and I would not recommend doing so.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34614#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list