audacity / audacity/audacity.github.io
Active nav link state not showing
- 主要言語
- TypeScript
- スター
- 10
- フォーク
- 8
- 平均マージ
- 18分
- マージ済み PR(30日)
- 5
説明
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
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- typescript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100