A return URL can turn a trusted sign-in link into a route to an attacker's site. Blocking one suspicious prefix is fragile. A protocol-relative address starts with two slashes, browsers normalize backslashes in some URL contexts, and control characters can cause trouble when untrusted text reaches a response header.
For a small set of destinations, use an exact allowlist or a server-owned destination identifier. The request may choose among those destinations; it can't create a new one. These exercises use exact local paths so the accepted policy is easy to inspect. An unapproved local path is refused too. This is a redirect boundary, not an authorization boundary: the destination must still authorize the next request. Keep both approved paths working rather than replacing every redirect with the same fixed page.
Restrict return locations to a small server-owned destination list.