URL with two locale is accessible bug
kkak10 opened this issue · 2 comments
kkak10 commented
When my routes config has:
Rails.application.routes.draw do
localized do
match 'tests' => 'test#index', :via => :get
match 'test/:test_id' => 'test#detail', :via => :get
end
end
and allow locale is "ko", "en", "zh"
URL with two locale is accessible only if URL contains dynamic value
/en/zh/tests => return not matched routing error
/en/zh/test/1 => why is it handled as a matched routing?
I want to solve the issue of having two locale in URL.
What should I do?
tagliala commented
Hi,
/en/zh/
sorry but this use case is not supported.
If you provide some information on why this feature is important and a real world use case, I could leave this open as "feature request"
kkak10 commented
I'm sorry. This issue is caused by my mistake. so close this issue.