Skip to content

Conversation

Exar04
Copy link
Contributor

@Exar04 Exar04 commented Sep 9, 2025

fixes: #2128

This does fixes the issue but not sure if we should do it this way

In this pr we it is checking if url starts with http and if it does then that means our url is external and should open up in new tab.
example -
url: "https://www.youtube.com" will open up in different window
but url: "/someComponent" will route within the headlamp

also as said in issue, we could add a separate external_url field to explicitly handle external URLs, but this may lead to ambiguity if both url and external_url are set by mistake

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Sep 9, 2025
@k8s-ci-robot k8s-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Sep 9, 2025
Copy link
Contributor

@skoeva skoeva left a comment

Choose a reason for hiding this comment

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

looks like there's a failing snapshot, could you update it after running make frontend-test?

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 11, 2025
@Exar04 Exar04 force-pushed the feat-sidebar-external-link branch from 2c66bd4 to 5c02b40 Compare September 11, 2025 09:01
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 11, 2025
@Exar04 Exar04 force-pushed the feat-sidebar-external-link branch from 5c02b40 to ca33ad1 Compare September 17, 2025 07:26
@illume illume added kind/feature Categorizes issue or PR as related to a new feature. Sidebar Sidebar component related frontend Issues related to the frontend labels Sep 24, 2025
@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 24, 2025
@joaquimrocha
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 24, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Exar04, joaquimrocha

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit 226b606 into kubernetes-sigs:main Sep 24, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. frontend Issues related to the frontend kind/feature Categorizes issue or PR as related to a new feature. lgtm "Looks good to me", indicates that a PR is ready to be merged. Sidebar Sidebar component related size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

How to create sidebar plugin that opens a link to another page
5 participants