From f7b17822940b2f536a2dd7f55aed0040bf8f65d6 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 20 Oct 2014 22:24:11 -0700 Subject: [PATCH] Fix post.rb permalink stuff in light of merge of #2925. --- lib/jekyll/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index 861ba4ca..7f0976e7 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -270,7 +270,7 @@ module Jekyll # The url needs to be unescaped in order to preserve the correct filename dest = site.in_dest_dir(dest) path = Jekyll.sanitized_path(dest, URL.unescape_path(url)) - path = File.join(path, "index.html") if path[/\.html$/].nil? + path = File.join(path, "index.html") if path[/\.html?$/].nil? path end