diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-11 07:15:01 +0200 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2020-09-11 07:15:01 +0200 |
commit | 948be2ef2bf04e306fbb0e2c3e0a98f4151337a7 (patch) | |
tree | 478def73f3d706c10186202c8a381b3a262a1e35 /lib/uri.cpp | |
parent | 0e87640560343c15b0a218796509d2d94e1a5c77 (diff) | |
download | libquotient-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/uri.cpp')
-rw-r--r-- | lib/uri.cpp | 2 |
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()) |