fix: uri encode system url. closes #102

This commit is contained in:
Henry Dollman
2024-08-19 12:13:18 -04:00
parent a337ece52e
commit 58fe9f723a
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ export default function CommandPalette() {
<CommandItem
key={system.id}
onSelect={() => {
navigate(`/system/${system.name}`)
navigate(`/system/${encodeURIComponent(system.name)}`)
setOpen(false)
}}
>

View File

@@ -291,7 +291,7 @@ export default function SystemsTable() {
onClick={(e) => {
const target = e.target as HTMLElement
if (!target.closest('[data-nolink]') && e.currentTarget.contains(target)) {
navigate(`/system/${row.original.name}`)
navigate(`/system/${encodeURIComponent(row.original.name)}`)
}
}}
>