Skip to content

Commit 14bdeb3

Browse files
aksOpsPaperclip-Paperclipclaude
committed
fix: encode kindEntry in hx-get path for consistency
Addresses CTO review note: kindEntry['kind'] in Quick View button's hx-get was the only unencoded path segment. Low risk since kind values are ASCII enum names, but now consistent with the encoding pattern. Co-Authored-By: Paperclip <noreply@paperclip.ing> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9a310da commit 14bdeb3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/resources/templates/explorer/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ <h3 class="font-semibold text-sm capitalize" th:text="${kindEntry['kind']}">kind
308308
Explore
309309
</a>
310310
<button hx-get="/ui/fragments/nodes/{kind}"
311-
th:attr="hx-get='/ui/fragments/nodes/' + ${kindEntry['kind']}"
311+
th:attr="hx-get='/ui/fragments/nodes/' + ${#uris.escapePathSegment(kindEntry['kind'])}"
312312
hx-target="#content"
313313
hx-swap="innerHTML"
314314
class="text-xs font-medium px-3 py-1.5 rounded-md text-muted dark:text-muted-dark hover:bg-slate-100 dark:hover:bg-slate-800 transition-colors">

0 commit comments

Comments
 (0)