Skip to content

Commit

Permalink
fix: add name to the subject field in email template and URL encode t…
Browse files Browse the repository at this point in the history
…he newline
  • Loading branch information
ewan-escience committed Oct 12, 2022
1 parent 8916576 commit 2a8a73d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default function OrganisationMaintainerLink({organisation, name, account,
>
<a
target="_blank"
href={`mailto:?subject=Organisation maintainer invite&body=Please use the following link to become a maintainer of the organisation ${name}. \n ${magicLink}`} rel="noreferrer">
href={`mailto:?subject=Maintainer invite for organisation ${encodeURIComponent(name)}&body=Please use the following link to become a maintainer of the organisation ${encodeURIComponent(name)}. ${encodeURIComponent('\n')}${magicLink}`} rel="noreferrer">
Email this invite
</a>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default function ProjectMaintainerLink({project,title,account,token}: {pr
>
<a
target="_blank"
href={`mailto:?subject=Project maintainer invite&body=Please use the following link to become a maintainer of the project ${title}. \n ${magicLink}`} rel="noreferrer">
href={`mailto:?subject=Maintainer invite for project ${encodeURIComponent(title)}&body=Please use the following link to become a maintainer of the project ${encodeURIComponent(title)}. ${encodeURIComponent('\n')}${magicLink}`} rel="noreferrer">
Email this invite
</a>
</Button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export default function SoftwareMaintainerLink({software,brand_name,account,toke
>
<a
target="_blank"
href={`mailto:?subject=Software maintainer invite&body=Please use the following link to become a maintainer of the software ${brand_name}. \n ${magicLink}`} rel="noreferrer">
href={`mailto:?subject=Maintainer invite for software ${encodeURIComponent(brand_name)}&body=Please use the following link to become a maintainer of the software ${encodeURIComponent(brand_name)}. ${encodeURIComponent('\n')}${magicLink}`} rel="noreferrer">
Email this invite
</a>
</Button>
Expand Down

0 comments on commit 2a8a73d

Please sign in to comment.