getgrav / getgrav/grav-plugin-langswitcher

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

Open
#73 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
PHP
Stars
31
Forks
25
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Grav LangSwitcher code that generates the page-header tag, then compare its translation-availability check with the logic that hides the visible language link. Done means the header does not include an alternate link when that translated page does not exist, while available translations still produce links.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
internationalization
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.