-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Commit 747557a
committed
fix(@angular/ssr): redirect to locale pathname instead of full URL
When redirecting to the preferred locale, the previous implementation used the full URL for the 302 redirect to i18n subpaths based on the user's preferred locale. This update ensures that the redirect now uses the locale-specific pathname instead of the full URL.
Closes #29514
(cherry picked from commit 46581db)1 parent 7532aca commit 747557a
File tree
2 files changed
+5
-7
lines changed- packages/angular/ssr
- src
- test
2 files changed
+5
-7
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
97 | 97 |
| |
98 | 98 |
| |
99 | 99 |
| |
100 | - | ||
101 | - | ||
100 | + | ||
101 | + | ||
102 | 102 |
| |
103 | 103 |
| |
104 | 104 |
| |
| |||
112 | 112 |
| |
113 | 113 |
| |
114 | 114 |
| |
115 | - | ||
116 | - | ||
117 | 115 |
| |
118 | 116 |
| |
119 | 117 |
| |
120 | - | ||
118 | + | ||
121 | 119 |
| |
122 | 120 |
| |
123 | 121 |
| |
|
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
160 | - | ||
160 | + | ||
161 | 161 |
| |
162 | 162 |
| |
163 | 163 |
| |
164 | 164 |
| |
165 | - | ||
165 | + | ||
166 | 166 |
| |
167 | 167 |
| |
168 | 168 |
| |
|
0 commit comments