Hash fragments never reach the server so they're lost during login redirects. ?file= survives the ?next= flow; #hash still works for direct access when already logged in. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>