Fix bug.
This commit is contained in:
parent
3b1b672cfe
commit
a6d86767b0
|
@ -35,7 +35,7 @@ class WebLink
|
||||||
tmp = self.url_translations[locale]
|
tmp = self.url_translations[locale]
|
||||||
temp_url[locale] = tmp
|
temp_url[locale] = tmp
|
||||||
unless tmp.match(/^http(s|):\/\//) || tmp.blank? || tmp.start_with?('/')
|
unless tmp.match(/^http(s|):\/\//) || tmp.blank? || tmp.start_with?('/')
|
||||||
temp_url[locale] = 'http://' + tmp
|
temp_url[locale] = 'https://' + tmp
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
self.url_translations = temp_url
|
self.url_translations = temp_url
|
||||||
|
|
Loading…
Reference in New Issue