From 61d05e3e9451add4d274950870212958b638ba0f Mon Sep 17 00:00:00 2001 From: fembem Date: Wed, 3 May 2023 20:20:58 -1000 Subject: [PATCH] result is a url, not a page --- lib/refinery/i18n-filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/refinery/i18n-filter.rb b/lib/refinery/i18n-filter.rb index 6b0253c..a03d5a0 100644 --- a/lib/refinery/i18n-filter.rb +++ b/lib/refinery/i18n-filter.rb @@ -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