seo-pro icon indicating copy to clipboard operation
seo-pro copied to clipboard

Field value saves @seo: prefix even when using Antlers

Open godismyjudge95 opened this issue 1 year ago • 1 comments

When saving a field value with Antlers value is being saved with a prefix of @seo: which causes any included Antlers to fail. You can manually edit the yaml and remove the prefix and that resolves the issue.

Relevant lines I found:

  • Returns early before the @seo: is parsed out - https://github.com/statamic/seo-pro/blob/master/src/Cascade.php#L216
  • Always prefixes the data with @seo: even if Antlers is being used in the field - https://github.com/statamic/seo-pro/blob/master/src/Fieldtypes/SourceFieldtype.php#L52

I placed a dd() call in the Cascade before the Antlers is parsed and that is how I found the @seo: prefix was still there.

godismyjudge95 avatar Aug 03 '24 05:08 godismyjudge95

In the CP, have you selected Field or Custom in the dropdown?

Could we see a screencast showing it happening in CP?

jesseleite avatar Aug 04 '24 12:08 jesseleite

Going to close this for now, but if this is still an issue for you, please re-open and we'll absolutely take a look!

jesseleite avatar May 08 '25 18:05 jesseleite