Base url without trailing '/'
This will allow cleaner url in templates and javascripts.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user