Skip to content

Commit

Permalink
Merge pull request #12 from thepolicylab-projectportals/fix-links
Browse files Browse the repository at this point in the history
refactor: fix url template for project previews
  • Loading branch information
jashlu authored Aug 17, 2023
2 parents d12756f + 331d836 commit 20fd73f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ export function formatEmail(projects, greeting){ // filtered list of projects, j
if (project.mainContact.email !== undefined){
addElement(`Contact Email: ${project.mainContact.email}`, projectDiv, 'p')
}
const clickableProjectLink = `<a href=${site}/${project.slug}>${site}/${project.slug}</a>`
const clickableProjectLink = `<a href=${site}/project/${project.slug}>${site}/project/${project.slug}</a>`
addElement(`URL: ${clickableProjectLink}`, projectDiv, 'p')
if (process.env.emailType === "Stale"){
addElement(`Possible Problems: ${project.problems.join(" ")}`, projectDiv, 'p')
Expand Down

0 comments on commit 20fd73f

Please sign in to comment.