Navigation: front-page route does not mark the menu link to the same source page current

オープン 初心者向け
#4,943 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
70/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
php, wordpress
領域
frontend

調査の方向性

まず、インポートによって WordPress のフロントページとメニューリンク /home/ がどのように作成されるかをたどり、次に WordPress Core がメニューの遷移先に対する aria-current をどのように決定するかを確認します。インポートされたページまたはリンクを調整し、両方が同じページを指すようにします。/ で Home リンクが現在のページとしてマークされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Problem

In the source, / and /home serve the same page, so the sidebar bolds "Home" on /. The import serves the front page at / while the menu link targets /home/, so Core does not mark it aria-current there and the bold appears only on /home/.

Expected

When the source's root route aliases a menu destination, the imported front page and that link resolve to the same WordPress page. For example, the link targets the front page, or that page is set as the front page.

AI assistance: Claude (Opus) in Franklin's Roadie session measured the source and import and wrote this issue.

主要言語
PHP
スター
25
フォーク
3
平均マージ
2時間 23分
マージ済み PR(30日)
942

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Automattic/blocks-engine のほかの issue

Automattic/blocks-engine の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。