Set wiki “base_path” option to fix “base_url”
If the “base_path” option of the wiki is not set, set it to the base url. It will make links work seamlessly when mounting to a relative url.
This commit is contained in:
@@ -69,6 +69,7 @@ module Precious
|
|||||||
|
|
||||||
before do
|
before do
|
||||||
@base_url = url('/')
|
@base_url = url('/')
|
||||||
|
settings.wiki_options.merge!({ :base_path => @base_url }) unless settings.wiki_options.has_key? :base_path
|
||||||
end
|
end
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
|
|||||||
Reference in New Issue
Block a user