Add anchor IDs to brand page sections for shareable navigation links#7064
Merged
leecalcote merged 3 commits intomasterfrom Oct 22, 2025
Merged
Add anchor IDs to brand page sections for shareable navigation links#7064leecalcote merged 3 commits intomasterfrom
leecalcote merged 3 commits intomasterfrom
Conversation
Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
Co-authored-by: leecalcote <7570704+leecalcote@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add id anchors to section elements in index.js
Add anchor IDs to brand page sections for shareable navigation links
Oct 22, 2025
leecalcote
approved these changes
Oct 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Overview
Implemented anchor IDs for all sections on the brand page to enable direct linking and sharing of specific sections. Users can now navigate to and share links like
https://layer5.io/company/brand#mesheryto point directly to a specific brand section.Changes Made
1. Added Unique IDs to All Sections
Each
<div className="section">element now has a unique, SEO-friendlyidattribute:brand-guide- Brand Guide sectionlayer5- Layer5 sectionsocial-backgrounds- Layer5 Social Backgrounds sectionmeshery- Meshery sectionmeshsync- MeshSync sectionmeshery-operator- Meshery Operator sectionimage-hub- Image Hub sectionsmp- Cloud Native Performance sectionmeshmark- MeshMark sectionservice-mesh-patterns- Cloud Native Patterns sectionnighthawk- NightHawk sectionmeshmate- MeshMate sectionmeshmaster- MeshMaster sectionkanvas- Kanvas sectioncatalog- Catalog sectionfive- Five (mascot) section2. Enhanced Navigation Function
Updated the
scrollTofunction to:sectionIdparameterwindow.history.pushState()when navigating to sections3. Hash Navigation on Page Load
Added a
useEffecthook that:/company/brand#kanvasUser Benefits
✅ Navigation menu items now update the URL - Click any section in the navigation menu and the URL automatically updates with the corresponding hash
✅ Shareable section links - Copy and share direct links to specific brand sections (e.g.,
https://layer5.io/company/brand#meshery)✅ Direct navigation - Visit URLs with hash anchors to jump directly to specific sections
✅ Preserved smooth scrolling - The existing smooth scroll animation continues to work seamlessly
Screenshot
The screenshot shows the brand page with the URL hash
#mesheryafter clicking the Meshery navigation link, demonstrating that users can now copy and share this URL to link directly to the Meshery brand section.Testing
Fixes the issue where brand page sections couldn't be directly linked or shared.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
https://storage.googleapis.com/chromium-browser-snapshots/Linux_x64/756035/chrome-linux.zipnode install.js(http block)unpkg.comnode scripts/postinstall.js(dns block)/usr/local/bin/node /home/REDACTED/work/layer5/layer5/.cache/tmp-4170-p5ypN39rVOA6(dns block)/usr/local/bin/node /home/REDACTED/work/layer5/layer5/.cache/tmp-4670-ZDP1pnXG1l7R(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.