Skip to content

Commit

Permalink
Fix: Update to Newsletter Subscription Tag (#1312)
Browse files Browse the repository at this point in the history
  • Loading branch information
benderham committed Sep 16, 2024
1 parent 0b4d6df commit 28fb7ab
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions docs/src/app/mailing-list/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ export async function POST(req: Request): Promise<Response> {
console.log(formData.getAll('tags'));
const data = {
email: formData.get('email'),
tags: [
...formData.getAll('tags'),
`keystatic website${pathname !== '/' ? `: ${pathname}` : ' homepage'}`,
],
tags: [...formData.getAll('tags'), `source:keystatic.com${pathname}`],
};

const buttondownResponse = await fetch(
Expand Down

0 comments on commit 28fb7ab

Please sign in to comment.