Fixed that caching the root would result in .html not index.html

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
David Heinemeier Hansson
2005-02-27 17:02:09 +00:00
parent 6f5a7b2004
commit 6ef19fcd48
2 changed files with 6 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
*SVN*
* Fixed that caching the root would result in .html not index.html
*1.5.0* (24th February, 2005)
* Added Routing as a replacement for mod_rewrite pretty urls [Nicholas Seckar]. Read more in ActionController::Base.url_for and on http://manuals.rubyonrails.com/read/book/9

View File

@@ -90,7 +90,7 @@ module ActionController #:nodoc:
private
def page_cache_file(path)
(path.empty? ? "/index" : path) + ".html"
((path.empty? || path == "/") ? "/index" : path) + ".html"
end
def page_cache_path(path)