bitwarden / bitwarden/ios

App does not respect 'Default URI match detection' setting

Open
#1,490 4 comments 0 reactions 0 assignees View on GitHub
app:password-manager bug needs-reply
Dominant language
Swift
Stars
684
Forks
154
Avg merge
7d 2h
Merged PRs (30d)
32

Description

### Steps To Reproduce

Given a domain `example.com`, if I have multiple subdomains or 2nd level subdomains, e.g. `foo.example.com`, `bar.example.com`, `foo.bar.example.com` and `baz.bar.example.com` and I have different logins for each of these domains

1. Go to 'Settings'
2. Tap on 'Autofill'
3. Scroll down to 'Default URI match detection'
4. Tap on 'Host'
5. Browse to one of the above domains (e.g. `foo.bar.example.com`) and attempt to login.

### Expected Result

Only one option should be presented when attempting to login to subdomains or 2nd level subdomains.

### Actual Result

Instead of being presented with one option, all options for the base domain (e.g. `example.com`) will be presented to the user.

### Screenshots or Videos

_No response_

### Additional Context

This feature works as expected with the Firefox extension. It does not work on iOS.

### Build Version

2025.2.0 (1974)

### What server are you connecting to?

EU

### Self-host Server Version

_No response_

### Environment Details

iPhone 11
iOS 17.7.2

### 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

Open the contributing guide

Research direction

Start at Settings > Autofill > Default URI match detection, select Host, and reproduce the behavior on a nested subdomain such as foo.bar.example.com. Trace the iOS Autofill URI matching path and compare its result with the Firefox extension; done means only the matching login is presented for subdomains and second-level subdomains.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.