{"id":19007904,"date":"2026-08-31T21:00:45","date_gmt":"2026-08-31T21:00:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/3-2-0-affect-on-redirect-query-strings\/"},"modified":"2026-08-31T21:00:45","modified_gmt":"2026-08-31T21:00:45","slug":"3-2-0-affect-on-redirect-query-strings","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/3-2-0-affect-on-redirect-query-strings\/","title":{"rendered":"3.2.0 Affect on Redirect Query Strings"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A change in 3.2.0 that unexpectedly broke some functionality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With 3.2 came the note:&nbsp;<em>Fixed a request that only differed from the saved permalink by a trailing slash failing to resolve \u2014 it now redirects to the canonical permalink instead.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Innocuous enough, but I lost all of my PPC tracking overnight. One of my ad destinations was set to&nbsp;<code>\/landing-page<\/code>&nbsp;rather than&nbsp;<code>\/landing-page\/<\/code>. Before 3.2.0 that URL resolved and served directly. Now it redirects, and the redirect arrives with the query string stripped, so every UTM parameter and the gclid are gone by the time the page renders.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The cause appears to be the interaction with cached hosting rather than the redirect itself. Managed WordPress hosts cache 301s, and a cached redirect replays a stored Location header, discarding whatever query string the visitor arrived with.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Sending&nbsp;<code>Cache-Control: no-store<\/code>&nbsp;with the redirect would prevent hosts from caching it, which I think resolves this generally. Anyone running paid traffic on managed WordPress hosting is likely affected and unlikely to notice, since the page still loads fine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I\u2019ve rolled back for now. Alternatively, surfacing&nbsp;<code>custom_permalinks_avoid_redirect<\/code>&nbsp;as a settings toggle, something like \u201cdon\u2019t redirect trailing-slash variants\u201d, would cover me without a theme hook.<\/p>\n","protected":false},"template":"","class_list":["post-19007904","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19007904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/19007904\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=19007904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}