Skip to content

Commit

Permalink
result is a url, not a page
Browse files Browse the repository at this point in the history
  • Loading branch information
fembem committed May 4, 2023
1 parent 34d37c2 commit 61d05e3
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 61d05e3

Please sign in to comment.