audacity / audacity/audacity.github.io

Active nav link state not showing

Ouverte
#4 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
10
Forks
8
Merge moyen
18 min
PR mergées (30 j)
5

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
typescript
Domaine
frontend
Type d'issue
Bug
Difficulté
2/5
Temps estimé
1-3 heures
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.