aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-11 07:15:01 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-09-11 07:15:01 +0200
commit948be2ef2bf04e306fbb0e2c3e0a98f4151337a7 (patch)
tree478def73f3d706c10186202c8a381b3a262a1e35 /lib
parent0e87640560343c15b0a218796509d2d94e1a5c77 (diff)
downloadlibquotient-948be2ef2bf04e306fbb0e2c3e0a98f4151337a7.tar.gz
libquotient-948be2ef2bf04e306fbb0e2c3e0a98f4151337a7.zip
Uri::toUrl(): fix incorrect matrix.to rep
The first character inside the fragment should be /
Diffstat (limited to 'lib')
-rw-r--r--lib/uri.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/uri.cpp b/lib/uri.cpp
index f813794c..8370d83a 100644
--- a/lib/uri.cpp
+++ b/lib/uri.cpp
@@ -134,7 +134,7 @@ QUrl Uri::toUrl(UriForm form) const
url.setScheme("https");
url.setHost("matrix.to");
url.setPath("/");
- auto fragment = primaryId();
+ auto fragment = '/' + primaryId();
if (const auto& secId = secondaryId(); !secId.isEmpty())
fragment += '/' + secId;
if (const auto& q = query(); !q.isEmpty())