Commit 6e8f34242b9c8b00977319619bf2f19372615e9e

Thomas de Grivel 2024-10-14T20:25:07

wip test_httpd

diff --git a/httpd/fx/app/controllers/fx_controller.kc3 b/httpd/fx/app/controllers/fx_controller.kc3
index 431802e..5c7df84 100644
--- a/httpd/fx/app/controllers/fx_controller.kc3
+++ b/httpd/fx/app/controllers/fx_controller.kc3
@@ -56,7 +56,7 @@ defmodule FXController do
     }
   }
 
-  def show_file = fn (path) {
+  def show_file = fn (path, url) {
     if (File.exists?(path)) do
       if (File.is_directory?(path)) do
         slash = if Str.ends_with?(path, "/") do "" else "/" end
@@ -75,7 +75,7 @@ defmodule FXController do
       tags = Fx.tag_index(path)
       properties = FXView.render_properties(properties)
       page = FXView.render_show_file(path, menu, file, properties)
-      body = LayoutView.render(path, page)
+      body = LayoutView.render(path, page, url)
       %HTTP.Response{body: body}
     end
   }