From 4aabbec7425052b4a2a0188c4dd301bb98bb4b4e Mon Sep 17 00:00:00 2001
From: bo0tzz <git@bo0tzz.me>
Date: Wed, 8 Jan 2025 14:52:59 +0100
Subject: [PATCH] fix: invert asset path link nesting (#15163)

---
 .../components/asset-viewer/detail-panel.svelte    | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/web/src/lib/components/asset-viewer/detail-panel.svelte b/web/src/lib/components/asset-viewer/detail-panel.svelte
index 3b38734897..11425067f5 100644
--- a/web/src/lib/components/asset-viewer/detail-panel.svelte
+++ b/web/src/lib/components/asset-viewer/detail-panel.svelte
@@ -377,14 +377,14 @@
           {/if}
         </p>
         {#if showAssetPath}
-          <a href={getAssetFolderHref(asset)} title={$t('go_to_folder')}>
-            <p
-              class="text-xs opacity-50 break-all pb-2 hover:dark:text-immich-dark-primary hover:text-immich-primary"
-              transition:slide={{ duration: 250 }}
-            >
+          <p
+            class="text-xs opacity-50 break-all pb-2 hover:dark:text-immich-dark-primary hover:text-immich-primary"
+            transition:slide={{ duration: 250 }}
+          >
+            <a href={getAssetFolderHref(asset)} title={$t('go_to_folder')}>
               {asset.originalPath}
-            </p>
-          </a>
+            </a>
+          </p>
         {/if}
         {#if (asset.exifInfo?.exifImageHeight && asset.exifInfo?.exifImageWidth) || asset.exifInfo?.fileSizeInByte}
           <div class="flex gap-2 text-sm">