lib/globalize2/site_controller_extensions.rb in radiant-globalize2-extension-0.3.0 vs lib/globalize2/site_controller_extensions.rb in radiant-globalize2-extension-0.3.1

- old
+ new

@@ -15,10 +15,12 @@ Globalize2Extension.content_locale = I18n.locale = @locale.to_sym end end def find_page_with_globalize(url) - url = '/' + I18n.locale.to_s + '/' + url if Globalize2Extension.locales.size > 1 + if Globalize2Extension.locales.size > 1 && url[/css|js/].nil? + url = '/' + I18n.locale.to_s + '/' + url + end find_page_without_globalize(url) end end end \ No newline at end of file