lib/yard/server/router.rb in yard-0.9.2 vs lib/yard/server/router.rb in yard-0.9.3
- old
+ new
@@ -99,10 +99,10 @@
# Performs routing algorithm to find which prefix is called, first
# parsing out library name/version information.
#
# @return [Array(Numeric,Hash,Array<String>)] the Rack-style response
# @return [nil] if no route is matched
- def route(path = request.path)
+ def route(path = request.path_info)
path = path.gsub(%r{//+}, '/').gsub(%r{^/|/$}, '')
return route_index if path.empty? || path == docs_prefix
case path
when /^(#{docs_prefix}|#{list_prefix}|#{search_prefix}|#{static_prefix})(\/.*|$)/
prefix = $1