fix: encode profile ids #280

This commit is contained in:
Carl-Gerhard Lindesvärd
2026-01-22 22:08:32 +01:00
parent 9e5b482447
commit 753d6dce4c
6 changed files with 9 additions and 9 deletions

View File

@@ -232,7 +232,7 @@ function EventDetailsContent({ id, createdAt, projectId }: Props) {
{profile && (
<ProjectLink
onClick={() => popModal()}
href={`/profiles/${profile.id}`}
href={`/profiles/${encodeURIComponent(profile.id)}`}
className="card p-4 py-2 col gap-2 hover:bg-def-100"
>
<div className="row items-center gap-2 justify-between">

View File

@@ -25,7 +25,7 @@ const ProfileItem = ({ profile }: { profile: any }) => {
return (
<ProjectLink
preload={false}
href={`/profiles/${profile.id}`}
href={`/profiles/${encodeURIComponent(profile.id)}`}
title={getProfileName(profile, false)}
className="col gap-2 rounded-lg border p-2 bg-card"
onClick={(e) => {