Modern Docker Management, Designed for Everyone
Go composecontainer-managementcontainersdockerdocker-composedocker-managementgoself-hostedsveltekittypescriptweb-ui
fix: remove trailing slashing for all resource links
Kyle Mendell1d2e41c0030b
diff --git a/frontend/src/routes/containers/container-table.svelte b/frontend/src/routes/containers/container-table.svelteindex 89e1011bc..62376d363 100644--- a/frontend/src/routes/containers/container-table.svelte+++ b/frontend/src/routes/containers/container-table.svelte@@ -141,7 +141,7 @@{/snippet}{#snippet NameCell({ item }: { item: ContainerSummaryDto })}- <a class="font-medium hover:underline" href="/containers/{item.id}/">+ <a class="font-medium hover:underline" href="/containers/{item.id}">{#if item.names && item.names.length > 0}{item.names[0].startsWith('/') ? item.names[0].substring(1) : item.names[0]}{:else}diff --git a/frontend/src/routes/dashboard/dash-container-table.svelte b/frontend/src/routes/dashboard/dash-container-table.svelteindex 88911a4f1..ed2c2bcdb 100644--- a/frontend/src/routes/dashboard/dash-container-table.svelte+++ b/frontend/src/routes/dashboard/dash-container-table.svelte@@ -36,7 +36,7 @@</script>{#snippet NameCell({ item }: { item: ContainerSummaryDto })}- <a class="font-medium hover:underline" href="/containers/{item.id}/">+ <a class="font-medium hover:underline" href="/containers/{item.id}">{#if item.names && item.names.length > 0}{item.names[0].startsWith('/') ? item.names[0].substring(1) : item.names[0]}{:else}diff --git a/frontend/src/routes/dashboard/dash-image-table.svelte b/frontend/src/routes/dashboard/dash-image-table.svelteindex f0986ddd5..3ef532eba 100644--- a/frontend/src/routes/dashboard/dash-image-table.svelte+++ b/frontend/src/routes/dashboard/dash-image-table.svelte@@ -37,7 +37,7 @@{#snippet NameCell({ item }: { item: ImageSummaryDto })}<div class="flex items-center gap-2"><div class="flex flex-1 items-center">- <a class="shrink truncate font-medium hover:underline" href="/images/{item.id}/">+ <a class="shrink truncate font-medium hover:underline" href="/images/{item.id}">{#if item.repoTags && item.repoTags.length > 0 && item.repoTags[0] !== '<none>:<none>'}{item.repoTags[0].split(':')[0]}{:else}diff --git a/frontend/src/routes/images/image-table.svelte b/frontend/src/routes/images/image-table.svelteindex 432166fba..ac3a776f0 100644--- a/frontend/src/routes/images/image-table.svelte+++ b/frontend/src/routes/images/image-table.svelte@@ -182,7 +182,7 @@{#snippet RepoCell({ item }: { item: ImageSummaryDto })}{#if item.repoTags && item.repoTags.length > 0 && item.repoTags[0] !== '<none>:<none>'}- <a class="font-medium hover:underline" href="/images/{item.id}/">{item.repoTags[0]}</a>+ <a class="font-medium hover:underline" href="/images/{item.id}">{item.repoTags[0]}</a>{:else}<span class="text-muted-foreground italic">{m.images_untagged()}</span>{/if}diff --git a/frontend/src/routes/networks/network-table.svelte b/frontend/src/routes/networks/network-table.svelteindex baa591d4d..64ae51927 100644--- a/frontend/src/routes/networks/network-table.svelte+++ b/frontend/src/routes/networks/network-table.svelte@@ -144,7 +144,7 @@</script>{#snippet NameCell({ item }: { item: NetworkSummaryDto })}- <a class="font-medium hover:underline" href="/networks/{item.id}/">{item.name}</a>+ <a class="font-medium hover:underline" href="/networks/{item.id}">{item.name}</a>{/snippet}{#snippet IdCell({ value }: { value: unknown })}diff --git a/frontend/src/routes/volumes/volume-table.svelte b/frontend/src/routes/volumes/volume-table.svelteindex a24f56ada..692b1ab93 100644--- a/frontend/src/routes/volumes/volume-table.svelte+++ b/frontend/src/routes/volumes/volume-table.svelte@@ -111,7 +111,7 @@</script>{#snippet NameCell({ item }: { item: VolumeSummaryDto })}- <a class="font-medium hover:underline" href="/volumes/{item.id}/" title={item.name}>+ <a class="font-medium hover:underline" href="/volumes/{item.id}" title={item.name}>{truncateString(item.name, 40)}</a>{/snippet}