audacity / audacity/audacity.github.io
Active nav link state not showing
- Lingua principale
- TypeScript
- Stelle
- 10
- Fork
- 8
- Merge medio
- 18m
- PR unite (30g)
- 5
Descrizione
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
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- typescript
- Ambito
- frontend
- Tipo di issue
- Bug
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100