Repository navigation
Commit 7c19657
LINDAT/fix(fe): redirect anonymous bitstream download on the server too
SSR rendered /bitstreams/<uuid>/download as 200 HTML for anonymous
requests, because window.location.replace does nothing in Node.
The anonymous branch now goes through HardRedirectService, which
answers 302 on the server and location.replace in the browser.
The logged-in branch is unchanged.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
(cherry picked from commit 8430a3d)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 7f16e81 commit 7c19657
2 files changed
Lines changed: 9 additions & 3 deletions
File tree
- src/app/bitstream-page/clarin-bitstream-download-page
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 | | |
137 | 139 | | |
138 | 140 | | |
| |||
0 commit comments