From 14d755f328eefed00a06a7c7f9fd02fc2f5c996a Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 19 May 2026 16:17:01 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fixes=20image=20widget=20update?= =?UTF-8?q?=20cache=20(#2151)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Widgets/ImageWidget.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Widgets/ImageWidget.vue b/src/components/Widgets/ImageWidget.vue index a80407b7..8586a911 100644 --- a/src/components/Widgets/ImageWidget.vue +++ b/src/components/Widgets/ImageWidget.vue @@ -40,7 +40,9 @@ export default { }, /* Generate a URL param, to be updated in order to re-fetch image */ updatePathParam() { - return this.updateCount ? `#dashy-update-${this.updateCount}` : ''; + if (!this.updateCount || !this.options.imagePath) return ''; + const separator = this.options.imagePath.includes('?') ? '&' : '?'; + return `${separator}dashy-update=${this.updateCount}`; }, }, methods: {