Repository navigation
Commit 9847315
ClawdAI2-brazil
fix: prevent double slash in web routing paths
Fixed routing path generation to strip leading slashes from directory
paths before base64 encoding, preventing double slashes in URLs.
Changes:
- packages/app/src/components/prompt-input/submit.ts: Normalize sessionDirectory
- packages/app/src/components/dialog-fork.tsx: Normalize sdk.directory
- packages/app/src/components/dialog-select-file.tsx: Normalize item.directory
Before: navigate("/" + base64Encode("/path")) → "//base64"
After: navigate("/" + base64Encode("path")) → "/base64"
Fixes anomalyco#128401 parent 24fd8c1 commit 9847315
3 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
310 | | - | |
| 310 | + | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
| 201 | + | |
201 | 202 | | |
202 | 203 | | |
203 | 204 | | |
| |||
0 commit comments