From 754f3099f058acc9314d514183be54bc6092983b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Wed, 28 Nov 2012 15:22:06 +0100 Subject: [PATCH] Trivial custom backend route. --- 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 cafb144..2668a7f 100644 --- a/lib/refinery/i18n-filter.rb +++ b/lib/refinery/i18n-filter.rb @@ -26,7 +26,7 @@ def around_generate(params, &block) result = result.is_a?(Array) ? result.first : result if ::Refinery::I18n.url_filter_enabled? and locale != ::Refinery::I18n.default_frontend_locale and - result !~ %r{^/(refinery|wymiframe)} + result !~ %r{^/(#{Refinery::Core.backend_route}|wymiframe)} result.sub!(%r(^(http.?://[^/]*)?(.*))) { "#{$1}/#{locale}#{$2}" } end end