audacity / audacity/audacity.github.io

Active nav link state not showing

Abierto
#4 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
10
Forks
8
Merge medio
18 min
PR fusionados (30 d)
5

Descripción

Run locally the active nav link renders blue:
image

This doesn't appear to be happening in our staging environment.

` function getUrlPath(url) {
const parts = url.split("/");
return "/" + parts[parts.length - 1];
}`

```
function renderNavLink(navLink, index) {
return (

{navLink.linkText}

);
}
```

Add console.log to above code to check what getUrlPath is returning on staging

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Start by running the site locally and in staging, then add the requested logging around getUrlPath(currentURL) and compare its result with navLink.href. The work is done when the active navigation link receives the blue styling in staging as it does locally.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
typescript
Área
frontend
Tipo de issue
Error
Dificultad
2/5
Tiempo estimado
1-3 horas
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
45/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.