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

Some links in seo.html GraphQL response do not respect default site settings #332

Open
ancaemcken opened this issue May 15, 2024 · 0 comments
Labels
bug Something isn't working graphql

Comments

@ancaemcken
Copy link

ancaemcken commented May 15, 2024

Hi there,

Thanks for an awesome add-on.

I use Statamic as the backend/cms for a headless app. As such, I configured cms.<domain> on the Statamic installation.

For the site link in the admin bar and for SEO link (canonical, etc), I set up www.<domain> . This is where the front-end app will live. The domain for the front-end is configured up as follows:

  • In .env, a SITE_URL variable.
  • In config/app.php, site_url => env(SITE_URL, '/')
  • In the Statamic CP, under Site, for the URL value, {{ config:app:site_url }}

The setup works as expected for every aspect I tested, except the rel=home and rel=author links in the rendered SEO html (fetched via GraphQL).

It would make sense in such a setup that these links point to the configured site url (www.) and not the subdomain hosting the CP.

I am using SEO Pro 6.0.2 and Statamic 5.2.0.

@ancaemcken ancaemcken changed the title Some links in seo.html GraphQL response does not respect default site settings Some links in seo.html GraphQL response do not respect default site settings May 16, 2024
@duncanmcclean duncanmcclean added bug Something isn't working graphql labels Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working graphql
Projects
None yet
Development

No branches or pull requests

2 participants