From 3434042aed573c27a89a13841f9a746f1c95ab56 Mon Sep 17 00:00:00 2001 From: Willem van den Ende Date: Fri, 15 May 2026 14:10:02 +0100 Subject: [PATCH] fix(microprints): resolve absolute paths correctly for source viewer - Use Path.expand(Path.join(app_root, path)) to correctly resolve both app files (lib/...) and blogex files (../blogex/...) - Previously Path.join alone did not resolve '..' components, causing all source viewers to show the wrong file content --- app/lib/firehose_web/live/microprints_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/firehose_web/live/microprints_live.ex b/app/lib/firehose_web/live/microprints_live.ex index 1a10a9d..b43b49c 100644 --- a/app/lib/firehose_web/live/microprints_live.ex +++ b/app/lib/firehose_web/live/microprints_live.ex @@ -149,7 +149,7 @@ defmodule FirehoseWeb.MicroprintsLive do app_root = Mix.Project.project_file() |> Path.dirname() Enum.map(files, fn path -> - Path.join(app_root, path) + Path.expand(Path.join(app_root, path)) end) end