The example in AM Conditional Login URL(https://backstage.forgerock.com/docs/openam-web-policy-agents/5.6/web-agents-guide/#web-agent-login-url-properties) are wrong.
When combining domain and path, you need to provide the port-number.
All such examples are missing the port-number:
"When you specify a domain in a conditional redirect, web agents match both the domain itself and its subdomains. For example, example.com matches mydomain.example.com and www.example.com.
Domains can also include path information. For example, www.example.com/market."