Base url without trailing '/'

This will allow cleaner url in templates and javascripts.
This commit is contained in:
Jean-Philippe Garcia Ballester
2012-08-08 13:44:50 +02:00
parent 410cd912ac
commit 37d20fa9cc
12 changed files with 43 additions and 43 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ module Precious
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