-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[VAULT-33207] Update Policy Modal to add isHrefExternal to External Links #29264
Conversation
CI Results: |
|
Build Results: |
<Hds::Link::Inline | ||
@isHrefExternal={{true}} | ||
@href="https://docs.hashicorp.com/sentinel/language" | ||
>Sentinel</Hds::Link::Inline> | ||
as a language to access | ||
<Hds::Link::Inline @href={{doc-link "/vault/docs/enterprise/sentinel/properties"}}>properties</Hds::Link::Inline> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this needs one too. Then we're all set! "External" refers to any link outside the app so unless we're routing to another page inside the app, we should include this arg.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha! I just applied it to the links that were previously using the <ExternalLink/>
component, I'll update it. Thank you!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense! The multiple use of "external" is confusing here. For additional context, we used to use this DocLink component to render links to our documentation, which extended from ExternalLink and just provided the first part of the path.
As we started using the HDS link components, we made the doc-link
helper to use instead, which can be used directly in templates to build a doc link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! ✨
Description
What does this PR do? This is a followup PR to add
isHrefExternal
attribute to external HDS links in the Policy ModalOriginal PR: #29254
Screenshots
ACL Policies: HCL Link
Endpoint Governing Policies: Sentinel Link
TODO only if you're a HashiCorp employee
backport/
label that matches the desired release branch. Note that in the CE repo, the latest release branch will look likebackport/x.x.x
, but older release branches will bebackport/ent/x.x.x+ent
.of a public function, even if that change is in a CE file, double check that
applying the patch for this PR to the ENT repo and running tests doesn't
break any tests. Sometimes ENT only tests rely on public functions in CE
files.
in the PR description, commit message, or branch name.
description. Also, make sure the changelog is in this PR, not in your ENT PR.