Internal links with href=outdated-slug fail despite redundant data-type data-id
-
Could someone who is well familiar with the topic of “Linking in WordPress” and in particular “link repair mechanisms” please tell me whether the observed behavior is indeed a bug or whether my expected behavior is not yet/anymore supported in WordPress?
I already filed that as a supposed bug 5 days ago but got no response so far.
Internal links, that are inline A elements with href=outdated-slug and which have the attributes data-type data-id as fallbacks should indeed use that fallback and update href=new-slug instead of resulting in a broken link (404).
WordPress 5.8 on a PHP 8 server with the Astra theme.
Sample screenshot of a broken internal link with href=outdated-slug and a redundant data-type and data-id which still point to the valid resource but sadly are not used for healing the link.I asked myself why else do these A elements have the attributes data-type=POSTTYPE and data-id=N if not as a redundancy/fallback for repairing the link when HREF changed from /correct-slug to /outdated-slug?
I’d appreciate a short reply, b/c I now need to complete my website at least to a certain minimum, and want to know how “perma” my permalinks must be in regards to how hard it will be in the future should slugs need to change in terms of “internal link healing” (putting SEO aside, that can be solved with redirects then).
And if my expected behavior is indeed not supported by WordPress if you can recommend any plugins which can find and repair such links (either as a daemon or as manually triggered batch operations which you do here and then).
Any response appreciated!
- The topic ‘Internal links with href=outdated-slug fail despite redundant data-type data-id’ is closed to new replies.