lib/gollum/frontend/app.rb in gollum-2.1.2 vs lib/gollum/frontend/app.rb in gollum-2.1.3

- old
+ new

@@ -80,15 +80,15 @@ configure :test do enable :logging, :raise_errors, :dump_errors end before do - @base_url = url('/', false) + @base_url = url('/', false).chomp('/') settings.wiki_options.merge!({ :base_path => @base_url }) unless settings.wiki_options.has_key? :base_path end get '/' do - show_page_or_file('Home') + redirect File.join(settings.wiki_options[:base_path].to_s, 'Home') end # path is set to name if path is nil. # if path is 'a/b' and a and b are dirs, then # path must have a trailing slash 'a/b/' or