Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(client): ensure sidebar remains visible on shared subpages#1887

Open
MatheusLuisLorscheiter wants to merge 2 commits intodocmost:mainfrom
MatheusLuisLorscheiter:fix/sidebar-shared-subpages
Open

fix(client): ensure sidebar remains visible on shared subpages#1887
MatheusLuisLorscheiter wants to merge 2 commits intodocmost:mainfrom
MatheusLuisLorscheiter:fix/sidebar-shared-subpages

Conversation

@MatheusLuisLorscheiter
Copy link

No description provided.

Copilot AI review requested due to automatic review settings January 31, 2026 02:56
@CLAassistant
Copy link

CLAassistant commented Jan 31, 2026

CLA assistant check
All committers have signed the CLA.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request fixes a navigation issue where the sidebar would disappear when viewing shared subpages. The fix adds logic to check if a page is part of the active shared tree before redirecting, ensuring the sidebar remains visible when navigating between related shared pages.

Changes:

  • Added a check to prevent redirecting when the current page is part of the shared tree structure
  • Implemented a new utility function isPageInTree to recursively search for pages in the tree
  • Modified the navigation logic in SharedPage component to conditionally redirect based on tree membership

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
apps/client/src/pages/share/shared-page.tsx Modified navigation logic to check tree membership before redirecting, preserving sidebar visibility
apps/client/src/features/share/utils.ts Added isPageInTree utility function for recursive tree traversal

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

3 participants