Skip to content

Handle Migration of GetMedia or GetAttachment in Widget Rich Text #545

@bluemodus-dbromeland

Description

@bluemodus-dbromeland

Brief bug description

When Migrating K13 page builder widgets, GetMedia or GetAttachment content is not migrated. These leaves migrated content with many broken image and PDF references.

Output logs

Here is an example of the widget Page Builder Data (~/getmedia/18b84d44-49dd-4686-99db-2bdce6d975b0/logo-dart-blue.png)

 {
                                "identifier": "3b158d97-5b4b-41c8-9a9a-61aca4350e5a",
                                "type": "EmbedWidgetViewComponent",
                                "conditionType": null,
                                "variants": [
                                    {
                                        "identifier": "f44cafe5-3fwd-413a-856e-0a325f16781a",
                                        "name": null,
                                        "properties": {
                                            "type": "RichText",
                                            "embedCode": null,
                                            "richTextCode": "<p style=\"text-align: center; padding-right: 15px\"><img src=\"~/getmedia/18b84d44-49dd-4686-99db-2bdce6d975b0/logo-dart-blue.png\" style=\"width: 60px\" align=\"middle\" class=\"fr-fic fr-dii\"></p><h2 style=\"text-align: center\">Here is my Header</h2>",
                                            "widgetHeaderText": "",
                                            "widgetSubHeaderText": "",
                                            "hideHeader": true,
                                            "headerAlignment": "center",
                                            "background": "",
                                            "padding": "composition--padded composition--padded-flush-bottom",
                                            "margins": "",
                                            "headerColor": null,
                                            "subHeaderColor": null
                                        },
                                        "conditionTypeParameters": null
                                    }
                                ]
                            },

Repro steps

Run the migration with /getmedia/ references embedded in rich text widget fields.

Expected behavior

I would expect /getmedia/ text references to be migrated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions