Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort from most specific match when the match is beyond the PSL suffix #754

Open
tonyxu-io opened this issue Jan 13, 2024 · 9 comments
Open

Comments

@tonyxu-io
Copy link

Created a new issue to capture the issue we discussed:

In email correspondence we discovered there is a slight bug in sorting of URLs, they're not always sorted from most specific match as they should be when the match is beyond the PSL suffix. e.g.

  1. https://abc.linked.com
  2. https://grid.linked.com

when visiting https://some-sub-domain.grid.linkedin.com, URL 2 should be sorted as the best match. Currently this isn't the case. We'll work on fixing that. Thanks @tonyxu-io

Originally posted by @strongbox-mark in #743 (comment)

@strongbox-mark
Copy link
Member

Hi @tonyxu-io - This should be fix for you know with 1.59.0 - feel free to reopen if that's not so.

@tonyxu-io
Copy link
Author

Wow! That's amazing! Thanks a lot for fixing this so quickly!

@tonyxu-io
Copy link
Author

Hi @strongbox-mark, it's very strange, the problem solved for some-sub-domain.grid.linkedin.com when I have password for grid.linkedin.com. But the same issue still exist for some-sub-domain.x.linkedin.com when I have x.linkedin.com password. This is hard to believe.

@strongbox-mark
Copy link
Member

Hi @tonyxu-io - Sorry to hear that. Could you please provide the 2 urls that are sorting incorrectly and the url that you are visiting and we can take a look.

@tonyxu-io
Copy link
Author

@strongbox-mark
Copy link
Member

Hi @tonyxu-io - I'm afraid I can't reproduce this. Maybe I have your details wrong. Here is what I did:

I have 2 entries with the following URLs:

and I go to visit:

The results are correctly sorted as:

What have I done wrong? Could you please supply 2 entry URLs AND the URL you are visiting, AND the result you are seeing? I'm afraid it's not super clear above.

@tonyxu-io
Copy link
Author

tonyxu-io commented Feb 22, 2024

Actually I'm storing them in the custom URL field (because I have multiple URLs to match for this password):
URL_GO: https://go.corp.linkedin.com/

When I directly use the primary URL field it's sorting fine.

@strongbox-mark
Copy link
Member

strongbox-mark commented Feb 22, 2024

So, that's a fairly important bit of information. Investigating bugs consumes our time and resources. There are other things we can work on, so it's important not to waste time. :)

So, if there's still an issue, what I'll need is:

  • 2 entrys with their URLs (you must specify BOTH primary and secondary URLs)
  • AND the URL you are visiting
  • AND the result you are seeing
  • AND the result you would like to or expect to see

Thanks.

@tonyxu-io
Copy link
Author

Entry 1: www.linkedin.com (primary URL)
Entry 2: grid.linkedin.com (primary URL), go.corp.linkedin.com (Secondary URL)
URL Visiting: go.corp.linkedin.com
Result: Entry 1 shown as first, Entry 2 shown as second
Expected Result: Entry 2 shown as first, entry 1 shown as second (because the URL visiting has an exact match with secondary URL from entry 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants