Breadcrumbs: Don't add breadcrumb for the current tab #68230
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Not sure why I added this, it is useful for pages with many tabs to find your way back to the "home" / default tab. But with scene drilldowns creating deep breadcrumbs, anything we can do to limit the number is good. It's also not great for mobile views because if we show the current tab, we have to have 3 breadcrumbs to find your way back to your the parent "page".
Before:
![image](https://private-user-images.githubusercontent.com/10999/237422592-d61de4d2-d14e-485d-b41b-71a765b74fda.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxODM0MzYsIm5iZiI6MTcyMjE4MzEzNiwicGF0aCI6Ii8xMDk5OS8yMzc0MjI1OTItZDYxZGU0ZDItZDE0ZS00ODVkLWI0MWItNzFhNzY1Yjc0ZmRhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDE2MTIxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTliMTY1NzFiYTBlNWUzMzE0NTM2ZGVjZTc3NTg1MjFjYTViNmQwYTY4NGU2NzYwOTg0NjM4ZjYyYTQ3ODVkMjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.0rdyF1HWaAvKoZGB6o-MJzpzFZmODEd2QIMv1wqEtKs)
After:
![Screenshot from 2023-05-10 16-25-29](https://private-user-images.githubusercontent.com/10999/237422676-ef54bbaf-30fb-45ce-b5ef-6d0890a69611.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIxODM0MzYsIm5iZiI6MTcyMjE4MzEzNiwicGF0aCI6Ii8xMDk5OS8yMzc0MjI2NzYtZWY1NGJiYWYtMzBmYi00NWNlLWI1ZWYtNmQwODkwYTY5NjExLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzI4VDE2MTIxNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTk2NGFjNzllNGI4ZTg1ZTkzZGQxODk0ZjY3NGRjOGFmZGViOWIyMDZmM2ZhNzkxZjczOTI2OGRjYWYyZTQ1NTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JhKqSQN_PuZL_-Kyd0yG-vVeLP5LSx-6-eiU_MWQSKg)