mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-02 17:44:46 -05:00
Add empty path to URL when needed
This commit is contained in:
parent
247ebf5a35
commit
460732097c
@ -935,6 +935,12 @@ int BrowserService::sortPriority(const Entry* entry,
|
|||||||
if (url.scheme().isEmpty()) {
|
if (url.scheme().isEmpty()) {
|
||||||
url.setScheme("https");
|
url.setScheme("https");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add the empty path to the URL if it's missing
|
||||||
|
if (url.path().isEmpty() && !url.hasFragment() && !url.hasQuery()) {
|
||||||
|
url.setPath("/");
|
||||||
|
}
|
||||||
|
|
||||||
const QString entryURL = url.toString(QUrl::StripTrailingSlash);
|
const QString entryURL = url.toString(QUrl::StripTrailingSlash);
|
||||||
const QString baseEntryURL =
|
const QString baseEntryURL =
|
||||||
url.toString(QUrl::StripTrailingSlash | QUrl::RemovePath | QUrl::RemoveQuery | QUrl::RemoveFragment);
|
url.toString(QUrl::StripTrailingSlash | QUrl::RemovePath | QUrl::RemoveQuery | QUrl::RemoveFragment);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user