Commit 9ad4710
committed
fix: Fix route param decoding after React Router upgrade
After upgrading React Router, route params containing encoded
characters are no longer automatically decoded. This caused values
being re-encoded during navigation, resulting
in invalid primary key errors.
This change decodes params immediately after matchPath to prevent
double encoding.
Signed-off-by: Jasmina <jasmina.piric@secomind.com>1 parent 231c287 commit 9ad4710
1 file changed
Lines changed: 9 additions & 1 deletion
File tree
- frontend/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
| |||
0 commit comments