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.
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:.env,
aSITE_URL
variable.config/app.php
,site_url => env(SITE_URL, '/')
{{ config:app:site_url }}
The setup works as expected for every aspect I tested, except the
rel=home
andrel=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.