"Return only best-matching credentials" is enabled. If it's disabled it shows all logins.
When logging in on https://service1.example.com or https://service1.example.com/index.php it should show the following logins:
https://service1.example.com/ (user 1)https://service1.example.com (user 2)When logging in on https://service1.example.com or https://service1.example.com/index.php it shows only:
https://service1.example.com/ (user 1)Changing https://service1.example.com/ (user1) to https://service1.example.com (without slash) fixes it and now both are displayed.
https://service1.example.com/ (user 1)https://service1.example.com (user 2)Trim (or add) the trailing slash when checking for matching logins.
https://service1.example.com/https://service1.example.comservice1.example.comIt strange that only a single result (the one with /) is shown because browsers like to hide trailing slashes so it confuses users.
KeePassXC - Version 2.5.1
Revision: 0fd8836
Qt 5.12.5
Debugging mode is disabled.
Operating system: Fedora 31 (Thirty One)
CPU architecture: x86_64
Kernel: linux 5.3.16-300.fc31.x86_64
Enabled extensions:
Cryptographic libraries:
libgcrypt 1.8.5
Technically we are doing it correctly even if it doesn't make sense. I do agree that the simple matter of a trailing slash shouldn't throw off the "only return best" setting.
I just realized you are still on 2.5.1. Update to 2.5.2, this may be fixed already.
@droidmonkey I should've checked for a new version... :/
I just installed the fedora testing version and it seems to be fixed. Sorry for the inconvenience.
Ok I thought there was still a trailing slash on my login but apparently I removed it yesterday... The behavior is still the same.
As you said, the behavior is technically correct, but I think it's confusing because users won't know when there is a trailing slash or not, because https://example.com technically does have a trailing slash even though it's 'invisible'...
@principis Do you have a site where I can test this behaviour? I tried https://build.opensuse.org and https://login.newrelic.com/login but couldn't reproduce this.
@varjolintu I created a test subdomain. It may take some time before you are able to access it because of dns.
I noticed it works in subdirectories, you can test here:
http://logintest.principis.be and http://logintest.principis.be/login
I made two entries for that site, one with url http://logintest.principis.be/ and second one with URL http://logintest.principis.be. I still get both entries from both pages.
So I still cannot reproduce this.
@varjolintu Is best matching credentials enabled?
I made the fix. In situations where there's no path or fragment (which means it's just the domain + possible subdomains), an empty path is added to the URL so it will get the same sorting priority as the one with the / added.
Thanks! :)