fix: correct window open for share your own secret link to handle self-hosted

This commit is contained in:
Scott Wilson
2025-06-23 18:01:38 -07:00
parent 842a2e9a06
commit 8ed0a1de84
2 changed files with 2 additions and 2 deletions
@@ -70,7 +70,7 @@ export const PasswordContainer = ({
colorSchema="primary" colorSchema="primary"
variant="outline_bg" variant="outline_bg"
size="sm" size="sm"
onClick={() => window.open("https://app.infisical.com/share-secret", "_blank")} onClick={() => window.open("/share-secret", "_blank")}
rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />} rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />}
> >
Share Your Own Secret Share Your Own Secret
@@ -76,7 +76,7 @@ export const SecretContainer = ({ secret, secretKey: key }: Props) => {
colorSchema="primary" colorSchema="primary"
variant="outline_bg" variant="outline_bg"
size="sm" size="sm"
onClick={() => window.open("https://app.infisical.com/share-secret", "_blank")} onClick={() => window.open("/share-secret", "_blank")}
rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />} rightIcon={<FontAwesomeIcon icon={faArrowRight} className="pl-2" />}
> >
Share Your Own Secret Share Your Own Secret