about summary refs log tree commit diff
path: root/src/components/Other/FSTracerFile.tsx
diff options
context:
space:
mode:
authorManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-13 09:55:44 +0200
committerManuel Palenzuela Merino <manuel.palenzuela@datadoghq.com>2024-07-13 09:55:44 +0200
commit6b8b2d50918c86a1785e26eb2e03c02bfa021b88 (patch)
treeb9e4e5344ce3580129ccd322e03cd1352d135651 /src/components/Other/FSTracerFile.tsx
parentPages: File: Dont show if file doesnt exist (diff)
downloadfs-tracer-frontend-6b8b2d50918c86a1785e26eb2e03c02bfa021b88.tar.gz
fs-tracer-frontend-6b8b2d50918c86a1785e26eb2e03c02bfa021b88.tar.bz2
fs-tracer-frontend-6b8b2d50918c86a1785e26eb2e03c02bfa021b88.zip
Pages: File: Have path be based on fileID instead of path
Diffstat (limited to 'src/components/Other/FSTracerFile.tsx')
-rw-r--r--src/components/Other/FSTracerFile.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Other/FSTracerFile.tsx b/src/components/Other/FSTracerFile.tsx
index 61c8e35..2bc58b4 100644
--- a/src/components/Other/FSTracerFile.tsx
+++ b/src/components/Other/FSTracerFile.tsx
@@ -6,7 +6,7 @@ interface FileComponentProps {
 
 export default function FileComponent(props: FileComponentProps) {
 	return (
-		<a href={`/file/${encodeURIComponent(props.file.absolute_path)}`}>
+		<a href={`/file/${encodeURIComponent(props.file.id)}`}>
 			<p className="underline">file: {props.file.absolute_path}</p>
 		</a>
 	)