• 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 URLs

    Best,
    Chris

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hello,

    As mentioned, previously we had an option to redirect attachment URLs to their post parent. This didn’t work for attachments that weren’t attached to anything. This new setting in Yoast SEO v7.0 redirects all attachment URLs to the URL of the original image or media item. This setting is enabled by default for new installations.

    If you wish to regain the feature that the attachment URL be redirected to the parent post it is attached to, we recommend that you check to see if there is a feature request on GitHub, and if there is none, to create a new feature request.

    we’re actively using the bug tracking on our GitHub repository which you can access here — https://github.com/Yoast/wordpress-seo/issues/new

    You can create a new issue to submit your feature request. You will need an account to create one.

    Don’t forget to include the URL to this conversation in your feature request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Bug: attachments not redirecting to parent pages’ is closed to new replies.