chrome: navbar home-route check assumes single locale, no basePath
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Refactorización
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- next.js, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
basePathinnext.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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 3
- Forks
- 0
- Merge medio
- 13 h 10 min
- PR fusionados (30 d)
- 67
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de decdn/website
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
bug med-priority
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
documentation future good first issue med-priority revisit
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
decdn/website#146 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
enhancement low-priority
Dificultad 3/5 1-2 días Aptitud para principiantes 52/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
decdn/website#268 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de decdn/website
Issues similares
-
Sequências em espanhol: «Atualizado em», a aba «Fila» e o valor 'pause' ainda saem em portuguêsAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 77/100
melgarafael/DeskcommCRM#3104 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
🐛 [Bug] Mobile: on the login and registration pages the footer sits below the visible screenAbiertobug service: webapp
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Ocelot-Social-Community/Ocelot-Social#10684 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nicobailon/pi-subagents#2978 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
getsentry/sentry-conventions#732 · 1 comentario ·
Los mantenedores suelen responder en 1 día