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

link href="alternative" being created for pages that don't exist #73

Open
angusmcb opened this issue Oct 14, 2022 · 1 comment
Open

Comments

@angusmcb
Copy link

When a page does not have a translation available in a particular language, langswitcher can hide the link from the page.

However, a link to the non-existant page will still be included in the tag in the page header.

@sushidave
Copy link

@angusmcb
Same issue here. As a quick fix, these two highlighed lines of code temporarily solved the issue for me:
grav-langswitcher-hreflang-html-twig
Also, I deleted all empty lines to reduce the number of empty lines in the HTML output. It can still be optimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants