app/helpers/roroacms/view_helper.rb in roroacms-0.0.6.7 vs app/helpers/roroacms/view_helper.rb in roroacms-0.0.6.8

- old
+ new

@@ -6,11 +6,10 @@ # +str+:: the string to append onto the end of the site url def site_url(str = nil) url = Setting.get('site_url') str = str[1..-1] if !str.blank? && str[0,1] == '/' - url = url + '/' if !url.blank? && url[-1, 1] != '/' - "#{Setting.get('url_prefix')}#{strip_url(url)}#{str}" + "#{Setting.get('url_prefix')}#{strip_url(url)}/#{str}" end # GENERIC Functions # # INTERNAL FUNC - returns a hash of the posts but removes the autosave records \ No newline at end of file