Skip to content Skip to sidebar

This topic contains 0 reply, has 0 voices.

Last updated by justinb-4 1 year ago.

Assisted by: Christopher Amirian.

Author Posts
July 14, 2025 at 11:03 am #17233215

justinb-4

Background of the issue:
I am trying to address an issue involving the Greenshift link element and the WPML Sticky Links add-on. Whenever we copy a link element block from the development site to the production site, or create a new link element block directly on the production site, we receive an error. I’ve recorded a video demonstrating the issue on our development environment: hidden link. Additionally, the issue can be seen on this page: hidden link.

Symptoms:
The error message 'This block contains unexpected or invalid content' appears. The browser console logs a 'Block validation error' when the link URL starts with a forward slash or a full absolute URL. The WPML Sticky Links add-on seems to replace URLs with dynamic page IDs, causing block validation to fail. Disabling the add-on resolves the issue.

Questions:
How can I prevent the WPML Sticky Links add-on from replacing link values unexpectedly?
What steps can I take to resolve the block validation error without disabling the WPML Sticky Links add-on?