The host-prefix regex required at least one character after the slash (/\+.+/), so a pattern like 'code.example.com/' was silently dropped instead of matching the root path '/'. Changed \+.+ to \+.* so the trailing slash alone is accepted as the path '/'. Added tests covering the exact bug scenario from PUBLIC_PATHS config: 'code.digitaladapt.com/,code.digitaladapt.com/public/**'