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

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.