Host Match Detection broken for URLs with ports
- Dominant language
- Kotlin
- Stars
- 9.4k
- Forks
- 1.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 67
Description
### Steps To Reproduce
https://github.com/bitwarden/mobile/issues/2970
1. Save an autofill item for a URL with a port.
2. See how it behaves on sites.
### Expected Result
Works correctly. Or at least works like the old app.
### Actual Result
Doesn't work.
### Screenshots or Videos
_No response_
### Additional Context
_No response_
### Build Version
2025.3.0
### What server are you connecting to?
Self-host
### Self-host Server Version
_No response_
### Environment Details
_No response_
### Issue Tracking Info
- [x] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
Contributor guide
Research direction
Start by reproducing the Android autofill failure with a saved item whose URL includes a port, then compare its host match behavior with the old app. Trace the host match detection entry point and verify that autofill works correctly on sites using ported URLs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 40/100