From 4e5ffae5573ec6d7c8478f3fff11a302ee54b0b0 Mon Sep 17 00:00:00 2001 From: Jason Butz Date: Fri, 5 Oct 2018 08:22:01 -0400 Subject: [PATCH] feat(notification-url): Send page URL with notification instead of just slug (#82) --- src/push/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/push/index.js b/src/push/index.js index 0784a3c..6ca0fd6 100644 --- a/src/push/index.js +++ b/src/push/index.js @@ -69,7 +69,7 @@ function init(app, db, awaiting_moderation) { const cnt = bySlug[k], msg = { message: `${cnt} new comment${cnt>1?'s':''} on "${k}" are awaiting moderation.`, - url: `/${k}`, + url: config.get('page_url').replace('%SLUG%', k), sound: !!row.active ? 'pushover' : 'none' }; delete bySlug[k];