Closed wdebusschere closed 6 months ago
Thanks for the report! Can you provide more information on your setup, share blueprints, SEO Audit version, etc.? The latest version is v1.5.0. Have you installed it?
In fact, SEO Audit supports draft pages. The section fetches the previewUrl
of a given page, which includes the token
required for draft pages. As an example, let me show you the request the section initiates:
Without information about your setup, I'm unable to reproduce the issue.
@johannschopplich Kirby 4.1.2 SEO audit 1.5.0 PHP 8.2
The get request for a draft does not work: The response: failed to load response data I get redirect to the site 404
https://preview.xxx.be/api/pages/teambuilding+2cv-the-goat-the-mountains?select=previewUrl
Interesting. Do you have page models, middlewares or controllers that prevent this page URL from being accessed?
Can you provide a minimum reproducible example for me, please? Seems like there's a configuration in your specific Kirby configuration that blocks Kirby's default preview URL from being callable.
@johannschopplich Yes it's caused by some custom logic i have, has nothing to do with the plugin. Thanks
Environment
All latest
Reproduction
Do a seo audit of a draft page
Describe the bug
It should add the token when a page is draft, cf kirby cms logic for previewing draft pages
Additional context
No response
Logs
No response