Skip to content

Commit

Permalink
Add page path to embed
Browse files Browse the repository at this point in the history
  • Loading branch information
obfuscated-loop committed Mar 14, 2024
1 parent fd7f928 commit 556f629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export async function middleware(req) {
title: 'Triggered view-logger',
description: 'A user just viewed your message!',
footer: {
text: `Source: ${source}`,
text: `Source: ${source}\nPage: ${req.nextUrl.pathname}`,
},
}],
}), headers: { 'content-type': 'application/json' }, method: 'POST'
Expand Down

0 comments on commit 556f629

Please sign in to comment.