grav-plugin-langswitcher icon indicating copy to clipboard operation
grav-plugin-langswitcher copied to clipboard

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

Open angusmcb opened this issue 2 years ago • 1 comments

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.

angusmcb avatar Oct 14 '22 08:10 angusmcb

@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.

sushidave avatar Dec 27 '22 20:12 sushidave