Commit 45537d9
committed
fix(web): prevent keyword URL duplication in entity mapper
Strip entity type prefix from OpenAlex IDs that include path segments
(e.g., keywords/machine-learning) to prevent duplication when EntityCard
constructs the final path as /${entityType}/${id}.
Affects keywords, domains, fields, and subfields entity types.1 parent b66d4ce commit 45537d9
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
151 | 165 | | |
152 | | - | |
| 166 | + | |
153 | 167 | | |
154 | 168 | | |
155 | 169 | | |
| |||
0 commit comments