fix: use the full url when resolving (#5345)

This commit is contained in:
nerix
2024-04-21 21:24:11 +02:00
committed by GitHub
parent 1a04bda56b
commit dfa929e207
5 changed files with 33 additions and 9 deletions
+19
View File
@@ -12,9 +12,28 @@ struct ParsedLink {
#else
using StringView = QStringRef;
#endif
/// The parsed protocol of the link. Can be empty.
///
/// https://www.forsen.tv/commands
/// ^------^
StringView protocol;
/// The parsed host of the link. Can not be empty.
///
/// https://www.forsen.tv/commands
/// ^-----------^
StringView host;
/// The remainder of the link. Can be empty.
///
/// https://www.forsen.tv/commands
/// ^-------^
StringView rest;
/// The original unparsed link.
///
/// https://www.forsen.tv/commands
/// ^----------------------------^
QString source;
};