From ffb2a0b82ae1639e14d9b6808bfe1ebabae68ca6 Mon Sep 17 00:00:00 2001 From: Rosa Gutierrez Date: Fri, 23 Jan 2026 19:25:23 +0100 Subject: [PATCH] Revert "Fix notification click URL by using correct data property" This reverts commit 4f2308d380b1118523886cbaef190ef31f7087dd. This was from another branch, shoudln't have been included here. --- app/views/pwa/service_worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pwa/service_worker.js b/app/views/pwa/service_worker.js index 91903e735..1216c550d 100644 --- a/app/views/pwa/service_worker.js +++ b/app/views/pwa/service_worker.js @@ -25,7 +25,7 @@ async function updateBadgeCount({ data: { badge } }) { self.addEventListener("notificationclick", (event) => { event.notification.close() - const url = new URL(event.notification.data.url, self.location.origin).href + const url = new URL(event.notification.data.path, self.location.origin).href event.waitUntil(openURL(url)) })