{"action":"created","issue":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9316","repository_url":"https://api.github.com/repos/Yoast/wordpress-seo","labels_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9316/labels{/name}","comments_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9316/comments","events_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9316/events","html_url":"https://github.com/Yoast/wordpress-seo/issues/9316","id":307615873,"number":9316,"title":"Attachments not redirecting to parent pages","user":{"login":"SukcesStrony","id":17356161,"avatar_url":"https://avatars2.githubusercontent.com/u/17356161?v=4","gravatar_id":"","url":"https://api.github.com/users/SukcesStrony","html_url":"https://github.com/SukcesStrony","followers_url":"https://api.github.com/users/SukcesStrony/followers","following_url":"https://api.github.com/users/SukcesStrony/following{/other_user}","gists_url":"https://api.github.com/users/SukcesStrony/gists{/gist_id}","starred_url":"https://api.github.com/users/SukcesStrony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SukcesStrony/subscriptions","organizations_url":"https://api.github.com/users/SukcesStrony/orgs","repos_url":"https://api.github.com/users/SukcesStrony/repos","events_url":"https://api.github.com/users/SukcesStrony/events{/privacy}","received_events_url":"https://api.github.com/users/SukcesStrony/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2018-03-22T12:06:22Z","updated_at":"2018-05-23T09:03:41Z","closed_at":null,"author_association":"NONE","body":"With one of the latest Yoast SEO versions (7.x), the attachment redirection function has changed, breaking some of the pages and not functioning as described in the Yoast Knowledge Base.\r\n\r\nSee this info: https://kb.yoast.com/kb/redirect-image-attachment-urls/\r\n\r\nThe options says “Redirect attachment URLs to the attachment itself?” and checking this box does exactly that.\r\n\r\nMeanwhile, prior to Yoast 7.x (not sure which one exactly), the option basically was “Redirect attachment URLs to PARENT POSTS WHICH THEY ARE ATTACHED TO?”.\r\n\r\nOn the info page linked above, the description says: “Redirect will automatically redirect the attachment URLs to the parent post.” and there’s info on how to attach or detach attachment from posts.\r\n\r\nThis change in behaviour was therefore rather not intentional and is a bug. Further, websites which use image galleries to link to pages or posts which the attachments are attached to are now broken, as link point to images rather than posts.\r\n\r\nPlease correct this function so that it still redirects attachments to the parent posts which they are attached to.\r\n\r\nIn an ideal situation, users should have the following options:\r\n1) Redirect attachment URLs to parent posts which they are attached to (on by default AND TURNED ON IF THE CURRENT AND PREVIOUS REDIRECTION SETTING WAS TURNED ON, for backwards compatibility) – use the function which was used in Yoast 6.x\r\n2) Redirect attachment URLs to attachments themselves – use the function which was used in Yoast 7.x\r\n3) Do not redirect attachment URLs\r\n\r\nInterlinked with forum post: https://wordpress.org/support/topic/bug-attachments-not-redirecting-to-parent-pages/#post-10101803\r\n\r\nBest,\r\nChris"},"comment":{"url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/comments/391275298","html_url":"https://github.com/Yoast/wordpress-seo/issues/9316#issuecomment-391275298","issue_url":"https://api.github.com/repos/Yoast/wordpress-seo/issues/9316","id":391275298,"user":{"login":"SukcesStrony","id":17356161,"avatar_url":"https://avatars2.githubusercontent.com/u/17356161?v=4","gravatar_id":"","url":"https://api.github.com/users/SukcesStrony","html_url":"https://github.com/SukcesStrony","followers_url":"https://api.github.com/users/SukcesStrony/followers","following_url":"https://api.github.com/users/SukcesStrony/following{/other_user}","gists_url":"https://api.github.com/users/SukcesStrony/gists{/gist_id}","starred_url":"https://api.github.com/users/SukcesStrony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SukcesStrony/subscriptions","organizations_url":"https://api.github.com/users/SukcesStrony/orgs","repos_url":"https://api.github.com/users/SukcesStrony/repos","events_url":"https://api.github.com/users/SukcesStrony/events{/privacy}","received_events_url":"https://api.github.com/users/SukcesStrony/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T09:03:41Z","updated_at":"2018-05-23T09:03:41Z","author_association":"NONE","body":"@jack2345A thanks, I've fixed it."}}
{"actor":{"display_login":"SukcesStrony"}}