Skip to content

Commit

Permalink
Escape the consumer group id
Browse files Browse the repository at this point in the history
As we use the consumer group id as a url fragment, we need to escape it to avoid problematic characters (like .)
Fixes #633
  • Loading branch information
riccardo-forina committed Apr 3, 2024
1 parent f2e55cd commit 53ec1c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export function ConsumerGroupsTable({
dataLabel={t("ConsumerGroupsTable.consumer_group_name")}
>
<Link
href={`/kafka/${kafkaId}/consumer-groups/${row.id === "" ? "+" : row.id}`}
href={`/kafka/${kafkaId}/consumer-groups/${row.id === "" ? "+" : encodeURIComponent(row.id)}`}
>
{row.id === "" ? (
<i>{t("ConsumerGroupsTable.empty_name")}</i>
Expand Down

0 comments on commit 53ec1c8

Please sign in to comment.