diff --git a/lib/yard/server/commands/frames_command.rb b/lib/yard/server/commands/frames_command.rb
index <HASH>..<HASH> 100644
--- a/lib/yard/server/commands/frames_command.rb
+++ b/lib/yard/server/commands/frames_command.rb
@@ -6,7 +6,9 @@ module YARD
         
         def run
           main_url = request.path.gsub(/^(.+)?\/frames\/(#{path})$/, '\1/\2')
-          if path && !path.empty?
+          if path =~ %r{^file/}
+            page_title = "File: #{$'}"
+          elsif !path.empty?
             page_title = "Object: #{object_path}"
           elsif options[:files] && options[:files].size > 0
             page_title = "File: #{options[:files].first.sub(/^#{library.source_path}\/?/, '')}"
Fix titles for File urls in frames