audacity / audacity/audacity.github.io

Active nav link state not showing

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
10
Forks
8
Avg merge
18m
Merged PRs (30d)
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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.