From 0a107b121dd0187fa60e2f334959064f3f09a195 Mon Sep 17 00:00:00 2001 From: Zsolt Tasnadi Date: Wed, 6 May 2026 15:39:58 +0200 Subject: [PATCH] fix --- apps/api/app/controllers/files_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/api/app/controllers/files_controller.rb b/apps/api/app/controllers/files_controller.rb index 611e048..c6d04f6 100644 --- a/apps/api/app/controllers/files_controller.rb +++ b/apps/api/app/controllers/files_controller.rb @@ -7,6 +7,7 @@ class FilesController < ApplicationController full_path = BASE_PATH.join(requested) if File.directory?(full_path) + return redirect_to(request.path + "/", status: :moved_permanently) unless request.path.end_with?("/") full_path = full_path.join('index.html') end