Skip to content

Commit

Permalink
Merge pull request #2 from fembem/around-generate-method-fix
Browse files Browse the repository at this point in the history
result is a url, not a page
  • Loading branch information
anitagraham committed Sep 29, 2023
2 parents b674435 + 61d05e3 commit 52931e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refinery/i18n-filter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def around_generate(params, &block)
if ::Refinery::I18n.url_filter_enabled? and
locale != ::Refinery::I18n.default_frontend_locale and
result !~ %r{^/(#{Refinery::Core.backend_route}|wymiframe)}
result.url.sub!(%r(^(http.?://[^/]*)?(.*))) { "#{$1}/#{locale}#{$2}" }
result.sub!(%r(^(http.?://[^/]*)?(.*))) { "#{$1}/#{locale}#{$2}" }
end
end
end
Expand Down

0 comments on commit 52931e3

Please sign in to comment.