Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(og): fixed open graph field names #97

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Kvintus
Copy link

@Kvintus Kvintus commented Jan 4, 2025

Summary

The : character is not allowed in field names when the GraphQL plugin generates type definitions. This restriction causes the app build to fail when both the GraphQL plugin and the SEO plugin are used, specifically when an SEO component is added to a content type.

Changes

  • Updated the naming of Open Graph fields in the SEO plugin to remove the : character, resolving the build failure.
  • Ensured compatibility between the GraphQL and SEO plugins, including fixing the issue where the preview functionality in the admin panel stopped working.

Screenshots

  • Attached a screenshot illustrating the build error:

Screenshot 2025-01-04 at 18 06 14

  • Working preview with the new attribute names:

Screenshot 2025-01-04 at 20 02 42

Related Issues

This PR addresses the issues raised in:

Both issues suggest renaming attributes as a potential solution but also note that the preview feature in the admin panel stops working. This PR resolves both the build failure and the preview functionality issue.

Testing

  • Verified that builds now complete successfully with both plugins enabled.
  • Confirmed that the preview functionality in the admin panel works as expected.

`:` Isn't allowed character for a field when the grapqhl plugin tries to generate definitions for it. 

This makes the build of the app fail if one has both Graphql Plugin and Seo plugin and adds an seo component to some content-type. 

Changing the names of the open-graphql components to not include the `:` fixes this bug.
@Kvintus Kvintus mentioned this pull request Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant