mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-01-23 13:11:12 -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()) {
|
||||
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 baseEntryURL =
|
||||
url.toString(QUrl::StripTrailingSlash | QUrl::RemovePath | QUrl::RemoveQuery | QUrl::RemoveFragment);
|
||||
|
Loading…
Reference in New Issue
Block a user