alert = CRM.alert(
// Mixing client-side variables with a translated string in smarty is awkward!
- ts({/literal}'{ts escape='js' 1='%1' 2='%2' 3='%3' 4='%4'}This contact has an existing %1 membership at %2 with %3 status%4.{/ts}'{literal}, {1:memberorgs[selectedorg].membership_type, 2: org, 3: memberorgs[selectedorg].membership_status, 4: andEndDate})
+ ts({/literal}'{ts escape='js'}This contact has an existing %1 membership at %2 with %3 status%4.{/ts}'{literal}, {1:memberorgs[selectedorg].membership_type, 2: org, 3: memberorgs[selectedorg].membership_status, 4: andEndDate})
+ '<ul><li><a href="' + memberorgs[selectedorg].renewUrl + '">'
+ {/literal}'{ts escape='js'}Renew the existing membership instead{/ts}'
+ '</a></li><li><a href="' + memberorgs[selectedorg].membershipTab + '">'