Skip to content

Fix/video category navigation#1063

Open
Sbragul26 wants to merge 6 commits into
layer5io:masterfrom
Sbragul26:fix/video-category-navigation
Open

Fix/video category navigation#1063
Sbragul26 wants to merge 6 commits into
layer5io:masterfrom
Sbragul26:fix/video-category-navigation

Conversation

@Sbragul26
Copy link
Copy Markdown
Member

Notes for Reviewers

This PR fixes #1051 where opening a video category page directly always showed the "Getting Started" tab instead of the correct one. It also fixes the URL update and removes footer flicker when switching tabs. No breaking changes.

Signed commits

  • Yes, I signed my commits.

Sbragul26 added 2 commits May 21, 2026 08:43
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 21, 2026

🚀 Preview deployment: https://layer5io.github.io/docs/pr-preview/pr-1063/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request implements a hash-based navigation system for video categories, featuring CSS transitions and dynamic height adjustments for the video grid. The feedback identifies several areas for improvement: optimizing the Hugo template performance by using .Scratch instead of merge within loops, correcting the usage of safeHTMLAttr to ensure proper attribute escaping, and refining the JavaScript logic to preserve existing URL parameters and hashes when updating links.

Comment thread layouts/partials/video-category-navigation.html Outdated
Comment thread layouts/partials/video-category-navigation.html Outdated
Comment thread layouts/partials/video-category-navigation.html Outdated
Sbragul26 and others added 4 commits May 21, 2026 13:32
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
Signed-off-by: Sbragul26 <sbragul26@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Videos page loads wrong category tab

1 participant