FIX get site url bug with setting api
This commit is contained in:
parent
e638dccfa5
commit
0b6ebb7b36
|
@ -41,8 +41,7 @@ class SettingsController < ApplicationController
|
|||
end
|
||||
|
||||
def get_site_url(key, value)
|
||||
url = reset_site_url(value)
|
||||
key.to_s === "url" && !value.to_s.start_with?("http") ? [request.protocol, request.host_with_port, value].join('') : url
|
||||
key.to_s === "url" ? append_http(reset_site_url(value)) : reset_site_url(value)
|
||||
end
|
||||
|
||||
def reset_site_url(url)
|
||||
|
|
Loading…
Reference in New Issue