Hello!
I am trying to switch from a multi TLD setup (.de/.fr/co.uk...) to a single domain setup (.com/de/, etc).
I would like to keep one site (page tree) per language in Alchemy.
It looks like Alchemy is capable of supporting this out of the box.
/components/alchemy_cms/config/routes.rb:166
get '(/:locale)/*urlname(.:format)' => 'pages#show'
Right now I am struggling getting it to work because the default scope of the Language model prevents the load_alchemy_language_from_params method to find the language from another Site:
/components/alchemy_cms/app/models/alchemy/language.rb:51
default_scope { on_site(Site.current) }
/components/alchemy_cms/lib/alchemy/controller_actions.rb:106
def load_alchemy_language_from_params
if params[:locale].present?
Language.find_by_code(params[:locale])
end
end
What would be a best practice to setup Alchemy with multi site/language support behind one domain?
Thanks for your help!
Deniz