mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 09:16:03 +03:00
[GH-ISSUE #1959] MQTT pathname is stripped from URL #629
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#629
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xadh00m on GitHub (Nov 17, 2021).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/1959
Originally assigned to: @liyasthomas on GitHub.
Describe the bug
We have an MQTT broker reachable via Websocket at e.g.
wss://foo.bar.com:8883/broker/ws. If I use this URL the pathname/broker/wsis stripped/ignored and Paho tries to connect tofoo.bar.com:8883.To Reproduce
Steps to reproduce the behavior:
wss://foo.bar.com:8883/broker/wsas URLExpected behavior
The pathname should not be stripped.
Desktop
Additional context
The issue is due to this line:
github.com/hoppscotch/hoppscotch@f28b55dd4d/packages/hoppscotch-app/components/realtime/Mqtt.vue (L247)Maybe a fix could look like this?
parseUrl.hostname + parseUrl.pathname !== "/" ? parseUrl.pathname : ""Thank you!
@xadh00m commented on GitHub (Nov 17, 2021):
Thank you very much! :-)