Skip to content

Conversation

@david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented May 20, 2024

Closes #2173

This is an alternative to #2238 that avoids changing the paths. We had some issues with loader and back button behavior in the past that we fixed by having the sidebar link go directly to the first tab on the page (in this case /system/inventory/sleds) instead of linking to the parent (/system/inventory), which is then responsible for doing a replace nav to get to the first tab path.

As part of reviewing #2238 I reviewed the past conversations I could find about this problem

and I could not reproduce the issue with the solution #2238, but something still makes me nervous about it. So here is the other way to do it. I'm still sort of on the fence (not sure why I can't shake the worry about #2238), but seeing the two approaches side by side will help us think about it.

Clearly this is more complicated, adding logic where the other just goes along with how React Router works by default, so I'd rather do #2238 if we can.

@vercel
Copy link

vercel bot commented May 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview May 20, 2024 7:49pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inventory link in sidebar not highlighted when on physical disks tab

2 participants