audacity / audacity/audacity.github.io
Active nav link state not showing
- 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:
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