lib/jekyll/page.rb in jekyll-1.4.3 vs lib/jekyll/page.rb in jekyll-1.5.0
- old
+ new
@@ -131,11 +131,11 @@
#
# dest - The String path to the destination dir.
#
# Returns the destination file path String.
def destination(dest)
- path = File.join(dest, File.expand_path(self.url, "/"))
- path = File.join(path, "index.html") if self.url =~ /\/$/
+ path = Jekyll.sanitized_path(dest, url)
+ path = File.join(path, "index.html") if url =~ /\/$/
path
end
# Returns the object as a debug String.
def inspect