diff --git a/lib/jekyll/commands/serve/servlet.rb b/lib/jekyll/commands/serve/servlet.rb index 3ae5cf32..2e20ace8 100644 --- a/lib/jekyll/commands/serve/servlet.rb +++ b/lib/jekyll/commands/serve/servlet.rb @@ -22,7 +22,7 @@ module Jekyll def search_file(req, res, basename) # /file.* > /file/index.html > /file.html - super || super(req, res, "#{basename}.html") + super || super(req, res, ".html") || super(req, res, "#{basename}.html") end # rubocop:disable Style/MethodName