Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

chrome: navbar home-route check assumes single locale, no basePath

オープン
#115 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
静か
技術スタック
next.js, typescript
領域
frontend

調査の方向性

Read components/site/Chrome.tsx and next.config.ts to understand the current route assumptions. The issue describes work to do before adding locale routing, a basePath, or another prefix rewriting layer; first check whether any of those are planned. Done means every home route check in Chrome.tsx handles the chosen routing setup without restoring the navbar tone bug described in #112.

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

説明

enhancement future med-priority revisit

Tracking comment from Gemini's review of #114.

Background

After #114, components/site/Chrome.tsx derives the navbar tone from:

const effectiveActive = pathname === "/" && scrolled ? active : "intro";

The pathname === "/" literal is correct today — the static export ships a single locale and next.config.ts has no basePath. If we ever add either, this check (and any other Chrome.tsx guard that conflates "home" with the literal "/" route) will silently mis-fire and the original #112 symptom returns: the navbar paints in a dark-section tone on what is functionally the home page.

When this matters

Before adding any of:

  • i18n routing (/en/, /de/, …)
  • a basePath in next.config.ts
  • any other prefix-rewriting layer that changes the home pathname

…audit components/site/Chrome.tsx for pathname === "/" and replace it with a routing-aware home check (e.g. strip locale prefix from pathname before comparing, or thread the home route through a config helper).

Out of scope for #114; filed so the assumption is documented and discoverable.

主要言語
TypeScript
スター
3
フォーク
0
平均マージ
12時間 52分
マージ済み PR(30日)
69

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

decdn/website のほかの issue

decdn/website の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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