diff --git a/packages/hoppscotch-app/components/realtime/Mqtt.vue b/packages/hoppscotch-app/components/realtime/Mqtt.vue index 77efd5c45..b34bd1f57 100644 --- a/packages/hoppscotch-app/components/realtime/Mqtt.vue +++ b/packages/hoppscotch-app/components/realtime/Mqtt.vue @@ -244,7 +244,9 @@ export default defineComponent({ ] const parseUrl = new URL(this.url) this.client = new Paho.Client( - parseUrl.hostname, + `${parseUrl.hostname}${ + parseUrl.pathname !== "/" ? parseUrl.pathname : "" + }`, parseUrl.port !== "" ? Number(parseUrl.port) : 8081, "hoppscotch" )