Example migrate process plugin to convert basic "node/123" links to the correct format

Created on 3 July 2019, over 5 years ago
Updated 16 May 2024, 6 months ago

A Migrate plugin that could convert basic <a href="node/123"> links into the required format would be really useful, both because lots of sites used that structure, and it could be useful as an example for people on how to build custom plugins for their own scenarios.

It would need to replace <a href="node/123"> links with the following structure:
<a data-entity-substitution="canonical" data-entity-type="node" data-entity-uuid="f52dbbd3-17cb-4d7f-8d65-f136645298db" href="/node/123">

✨ Feature request
Status

Needs work

Version

7.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024