kirby-seo icon indicating copy to clipboard operation
kirby-seo copied to clipboard

check if translation exist before adding alternate tags

Open timnarr opened this issue 1 year ago • 2 comments

Hi Tobias,

thanks for this plugin 🙌

I just noticed that kirby-seo outputs alternate tags for pages that doesn't have a existing content file for this language.

I've added a simple check by using the page methods translation() and exists() to check if the page for a given language code exists on disk.

Pls let me know if you need more information from me.

timnarr avatar Aug 15 '24 15:08 timnarr

Thank you for this approach. I used it and extended it for this pull request: https://github.com/tobimori/kirby-seo/pull/128

leobardimpact avatar Jan 31 '25 16:01 leobardimpact

Just noticed the same problem. Wanted to suggest a similar fix.

dweidner avatar Mar 19 '25 14:03 dweidner

will be included manually in v2.0.0 - thanks for your PR.

tobimori avatar Jun 09 '25 15:06 tobimori