• Resolved abitofmind

    (@abitofmind)


    Disclaimer: I already asked at the plugin support forum of 404 Solution and got the support reply that it only solves the symptom (redirect instead of 404) but not the cause (broken link in markup of incoming links).

    So, does your plugin solve this my following use case?
    For details please see this my feature request, in essence here:

    Broken internal links in page-markup created with the Gutenberg Editor,
    A) that are inline A elements with href=old-slug
    B) of which some may have the redundancy attributes “data-type” and “data-id” still pointing to the valid resource.

    1) Can be detected either in batch processing,
    ( Your plugin does this initially according to the description)
    2) or event-based:
    ( Does your plugin do that? If not, worth considering? )
    a) when changing a page slug –> heal all incoming links,
    b) when getting a request to an inexistent slug from an internal link –> go to the referrer URL, there look through the markup, then ASAP give the user a temporary redirect, serve him the valid resource, then put the broken links in a “fix queue” which gets processed and persisted a bit later.
    3) where the markup gets healed to href=correct-slug (fully-automatic in case B),
    4) maybe even with options when/how to update corresponding link labels too,
    5) and add a permanent redirect 301 old-slug -> new-slug to keep your SEO juice/ranking for that page.

    Your answer would be very much appreciated, thanks!
    Also if some of my ideas are not yet handled in your plugin, feel free to tell me what you think of them. Or if it can be achieved in combination with another plugin. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Predrag – WPMU DEV Support

    (@wpmudev-support1)

    Hi @abitofmind,

    I’m not sure if I’m missing something from the trac explanation but I couldn’t replicate the behavior that you were referring there.

    I’ve created Page1, linked it in Page2, and then changed the slug of Page1.
    After visiting the Page1 link in Page2 it redirected me from old slug to new one and the page loaded.

    Due to this BLC also didn’t read it as a broken link since the redirect worked and loaded working page.

    As for the BLC functionality available, BLC can indeed bulk check for broken links and notify admin and/or author about the new broken links via Email.

    There’s no option to update the links to working ones but there are options to apply custom look to broken links via CSS (add strikethrough for example) and stop search engines from following them.

    Hope this helps.

    Cheers,
    Predrag

    Thread Starter abitofmind

    (@abitofmind)

    Hi Predrag,

    thanks for your reply!

    You achieved your reproduction with an active Redirection plugin I assume. And I without it! To not explode the issue here I put my experienced bug with a full reproduction into a separate support-ticket, and also have some renaming recommendations in another ticket.

    Here, I would like to continue the overall/high-level discussion, what you see in the scope of your plugin, and what may be better off in core or other plugins?

    From the research and tests conducted in the last 1-2 weeks, I meanwhile learned:
    – ?? All my issues can be solved with plugins (examination in link below)
    – ? Except healing broken links in the markup when intercepting a slug-change during the event of saving a page or when pages in hierarchical structures are moved or parents changed their name.
    – I outsourced these event based approaches:
    – to Github.com/WordPress/gutenberg/
    – as When changing a slug offer options to update internal incoming links
    – It is full with a visual mockup story there. Check it out ??

    My questions to you:
    – Would you like to extend your plugin to be event-based?
    – Or do you think this is best/better off in Gutenberg?
    – If so, could you think participating as a dev there?

    Regards, abitofmind

    Thread Starter abitofmind

    (@abitofmind)

    Hi Predrag,

    1) the cause for the basic functionality having failed turned out to be a plugin conflict with My Private Site which I posted about into the other support ticket which so far was handled by your colleague Nithin.

    2) Having found the cause for #1, now more importantly/revolutionary: What do you guys think about my idea to use the data-type and data-id attributes in HTML A elements to automatically heal broken internal links?

    Regards, abitofmind

    • This reply was modified 3 years, 2 months ago by abitofmind.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Broken links healed in job or also event based? Is link attribute data-id used?’ is closed to new replies.