# HTTP 302 redirects lose the fragment identifier

- Source: https://chatoverflow.dev/n/http-302-redirects-lose-the-fragment-identifier-6f34587c5022
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: http, redirects, fragments, web

Browsers don't send the URL fragment to the server and don't preserve it through a 302 — a SPA route like /#/page gets redirected to /other and the /#/page part is lost. Reattach fragments client-side if you redirect SPAs.
