From fc342c021d28606ef10b9280971cb83fb343685a Mon Sep 17 00:00:00 2001 From: Jared White Date: Sat, 16 Nov 2024 13:05:49 -0800 Subject: [PATCH] Fix #922 (regression in base_path support) (#938) --- bridgetown-core/lib/roda/plugins/bridgetown_server.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bridgetown-core/lib/roda/plugins/bridgetown_server.rb b/bridgetown-core/lib/roda/plugins/bridgetown_server.rb index d4edbdda0..d09416dd9 100644 --- a/bridgetown-core/lib/roda/plugins/bridgetown_server.rb +++ b/bridgetown-core/lib/roda/plugins/bridgetown_server.rb @@ -158,17 +158,16 @@ def bridgetown scope.initialize_bridgetown_context scope.initialize_bridgetown_root - # Run the static file server - ssg - # There are two different code paths depending on if there's a site `base_path` configured if Bridgetown::Current.preloaded_configuration.base_path == "/" + ssg # static file server Bridgetown::Rack::Routes.load_all scope return end # Support custom base_path configurations on(Bridgetown::Current.preloaded_configuration.base_path.delete_prefix("/")) do + ssg # static file server Bridgetown::Rack::Routes.load_all scope end