diff --git a/src/components/Widgets/ImageWidget.vue b/src/components/Widgets/ImageWidget.vue index a80407b712..8586a911e4 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: {