Skip to content

Commit

Permalink
Merge remote-tracking branch 'misterbojangles/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
parndt committed May 23, 2011
2 parents b32d2b2 + a0cf44b commit a80739a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/refinery/helpers/menu_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def selected_page?(page)
path = path.force_encoding('utf-8') if path.respond_to?(:force_encoding)

# Ensure we match the path without the locale, if present.
if defined?(::Refinery::I18n) and ::Refinery::I18n.enabled? and path =~ %r{^/#{::I18n.locale}}
if defined?(::Refinery::I18n) and ::Refinery::I18n.enabled? and path =~ %r{^/#{::I18n.locale}/}
path = path.split(%r{^/#{::I18n.locale}}).last
path = "/" if path.blank?
end
Expand Down

0 comments on commit a80739a

Please sign in to comment.