From d24915600aba801eb82accd3a5a641ee9e1114c5 Mon Sep 17 00:00:00 2001 From: tdreyno Date: Tue, 11 Aug 2009 15:39:20 -0700 Subject: [PATCH] page info fix --- lib/middleman/helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/middleman/helpers.rb b/lib/middleman/helpers.rb index 9d7b3ae6..b8caff30 100644 --- a/lib/middleman/helpers.rb +++ b/lib/middleman/helpers.rb @@ -5,7 +5,7 @@ def link_to(title, url="#", params={}) end def page_classes(*additional) - path = env["REQUEST_PATH"] + path = request.path_info path << "index.html" if path.match(%r{/$}) path.gsub!(%r{^/}, '')