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

fullHead gives me backend url on og:url meta tag #101

Open
2 of 3 tasks
shubhamw3nuts opened this issue Jul 31, 2024 · 1 comment
Open
2 of 3 tasks

fullHead gives me backend url on og:url meta tag #101

shubhamw3nuts opened this issue Jul 31, 2024 · 1 comment
Labels
invalid? 🤔 This doesn't seem right status: needs info 🔎 Needs more info before action can be taken type: bug 🐛 Something isn't working

Comments

@shubhamw3nuts
Copy link

Description

On my headless wordpress website fullHead on wpgraphql query result give me backend URL on og:meta tags instead of frontend URL how can i get front URL there?

Currently : <meta property="og:url" content="https://website.com/backend/blog/">
I Want : <meta property="og:url" content="https://website.com/blog/">

Steps to reproduce

.

Additional context

No response

Plugin Version

0.3.0

WordPress Version

6.6.1

WPGraphQL Version

1.27.0

RankMath SEO Version

1.0.223

Additional enviornmental details

No response

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for RankMath SEO, WPGraphQL, and WPGraphQL for Rank Math

  • Yes
  • My issue is with a specific 3rd-party plugin.
@justlevine
Copy link
Member

Hey @shubhamw3nuts ,

Have you set your WordPress HOME_URL to correctly point to your headless frontend?

WPGraphQL for Rank Math respects WordPress as the source of truth, so URLs should (correctly) point to whatever you have defined as your HOME_URL.

If you are not using WP as your source of truth, then you likely want to do a string-replace of the WordPress URL to your headless one, same way I'm assuming you're handling other internal URLs in returned html (e.g. ContentNode.content )

@justlevine justlevine added invalid? 🤔 This doesn't seem right status: needs info 🔎 Needs more info before action can be taken type: bug 🐛 Something isn't working labels Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid? 🤔 This doesn't seem right status: needs info 🔎 Needs more info before action can be taken type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants