diff --git a/src/components/cards/dashboard/CameraCard.vue b/src/components/cards/dashboard/CameraCard.vue index 9bce740db7..904fcd5ba6 100644 --- a/src/components/cards/dashboard/CameraCard.vue +++ b/src/components/cards/dashboard/CameraCard.vue @@ -32,10 +32,10 @@ export default class CameraCard extends Mixins(UtilsMixin) { refresh = new Date().getTime() get url () { - const url = this.$store.state.config.uiSettings.camera.url - const params = new URLSearchParams(url) - params.set('cacheBust', '' + this.refresh) - return decodeURIComponent(params.toString()) + const hostUrl = new URL(document.URL) + const url = new URL(this.$store.state.config.uiSettings.camera.url, hostUrl.origin) + url.searchParams.append('cacheBust', this.refresh.toString()) + return url.toString() } get config () {