Bug: attachments not redirecting to parent pages
-
With one of the latest Yoast SEO versions, the attachment redirection function has changed, breaking some of the pages and not functioning as described in the Yoast Knowledge Base.
See this info: https://kb.yoast.com/kb/redirect-image-attachment-urls/
The options says “Redirect attachment URLs to the attachment itself?” and checking this box does exactly that.
Meanwhile, 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?”.
On 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.
This 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.
Please correct this function so that it still redirects attachments to the parent posts which they are attached to.
In an ideal situation, users should have the following options:
1) 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
2) Redirect attachment URLs to attachments themselves – use the function which was used in Yoast 7.x
3) Do not redirect attachment URLsBest,
Chris
- The topic ‘Bug: attachments not redirecting to parent pages’ is closed to new replies.