Skip to content

Conversation

@ChristopherFry
Copy link
Contributor

Fixes the external link on the apply replacements function documentation in reference to kptdev/kpt/issues/3594.

<!--mdtogo-->
[kustomize replacements]: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/replacements/
[kustomize replacements]: https://kubectl.docs.kubernetes.io/references/kustomize/kustomization/replacements/ ':target=_blank'
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not much of a CSS expert so forgive me (I assume this is CSS). From some brief googling it looks like this tells the browser to open this link in a new tab. How does this fix the link?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good question. Essentially we're hitting a cross-origin issue here. We're on domain A, and the browser isn't allowing us to redirect to domain B.

I'm taking a slightly opinionated approach to correct this. Since we're linking to an external domain, I'm choosing to link to it by opening up a new tab. This is consistent with kpt.dev Contact page and Config Sync documentation. Being this is in a new tab, browsing to domain B directly is allowed.

Another way I can resolve this is similar to what we do in the sidebar, and add the :crossorgin. This would correct the issue allowing us to browse to the domain B in the same tab.

Copy link
Contributor

Choose a reason for hiding this comment

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

SGTM if this is consistent with other external links

@ChristopherFry ChristopherFry merged commit ff2da38 into kptdev:apply-replacements/v0.1 Nov 22, 2022
@ChristopherFry ChristopherFry deleted the cfry/apply-replacements-links branch November 22, 2022 22:09
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.

2 participants