Commit cdb373f
fix: root redirect uses app_root_path with trailing slash (#1547)
- Changed from request.scope.get("root_path") to settings.app_root_path
for consistency with other parts of the codebase
- Added trailing slash (/admin/) to avoid 307 redirect
- Removed unused request parameter from root_redirect function
- Updated tests to verify correct redirect path with app_root_path
Closes #1547
Signed-off-by: Mihai Criveti <crivetimihai@gmail.com>
Co-authored-by: Mihai Criveti <crivetimihai@gmail.com>1 parent b811e52 commit cdb373f
File tree
3 files changed
+11
-14
lines changed- mcpgateway
- tests/unit/mcpgateway
3 files changed
+11
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5261 | 5261 | | |
5262 | 5262 | | |
5263 | 5263 | | |
5264 | | - | |
| 5264 | + | |
5265 | 5265 | | |
5266 | | - | |
| 5266 | + | |
5267 | 5267 | | |
5268 | 5268 | | |
5269 | 5269 | | |
5270 | | - | |
5271 | | - | |
5272 | | - | |
5273 | | - | |
5274 | 5270 | | |
5275 | | - | |
| 5271 | + | |
5276 | 5272 | | |
5277 | 5273 | | |
5278 | 5274 | | |
5279 | 5275 | | |
5280 | | - | |
5281 | | - | |
5282 | | - | |
| 5276 | + | |
| 5277 | + | |
| 5278 | + | |
5283 | 5279 | | |
5284 | 5280 | | |
5285 | 5281 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
189 | | - | |
| 190 | + | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
0 commit comments