Commit 40808c2
committed
Add URL normalization to remove trailing slashes in example detail URLs
- Add useEffect hook to normalize URLs by removing trailing slashes from /example-detail/ paths
- This ensures consistent URL format without unnecessary trailing slashes
- Automatically converts /example-detail/?id=... format to /example-detail?id=... format
- Prevents automatic redirects to URLs with trailing slashes1 parent 458c83d commit 40808c2
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
137 | 154 | | |
138 | 155 | | |
139 | 156 | | |
| |||
0 commit comments