Skip to content

Prevent selection change for external endpoints in changeSelected.#302

Merged
RobotHanzo merged 1 commit intoCKStudentCouncil:mainfrom
mm-news:changeSelected
Mar 11, 2026
Merged

Prevent selection change for external endpoints in changeSelected.#302
RobotHanzo merged 1 commit intoCKStudentCouncil:mainfrom
mm-news:changeSelected

Conversation

@mm-news
Copy link
Contributor

@mm-news mm-news commented Mar 11, 2026

This pull request introduces a small update to the changeSelected function in HeaderSidebar.vue. Now, when a user attempts to select an external endpoint, the selection is prevented, ensuring only internal endpoints can be selected.

  • Prevent selecting external endpoints in the changeSelected function by checking the external property before updating the selected value.

Copy link
Contributor

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

Updates the sidebar selection logic so that clicking an external endpoint (opened via href/target="_blank") no longer updates the app’s internal “selected” state, keeping selection restricted to internal routes.

Changes:

  • Add an external endpoint guard in changeSelected to early-return for external endpoints.

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

@RobotHanzo RobotHanzo merged commit 34c99a0 into CKStudentCouncil:main Mar 11, 2026
5 checks passed
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