audacity / audacity/audacity.github.io
Active nav link state not showing
- Vorherrschende Sprache
- TypeScript
- Sterne
- 10
- Forks
- 8
- Ø Merge
- 18 Min.
- Gemergte PRs (30 T.)
- 5
Beschreibung
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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100