diff --git a/ui/src/app/userinfo/components/cli-help.tsx b/ui/src/app/userinfo/components/cli-help.tsx index b31baafcf2af..24a567c15107 100644 --- a/ui/src/app/userinfo/components/cli-help.tsx +++ b/ui/src/app/userinfo/components/cli-help.tsx @@ -13,7 +13,7 @@ export const CliHelp = () => { .split(';') .map(x => x.trim()) .find(x => x.startsWith('authorization=')) || '' - ).replace('authorization=', ''); + ).replace(/^authorization="?(.*)"?$/, '$1'); const text = `export ARGO_SERVER='${document.location.hostname}:${document.location.port || (argoSecure ? 443 : 80)}' export ARGO_HTTP1=true