SpinaCMS / Spina

Spina CMS
http://www.spinacms.com
Other
2.18k stars 399 forks source link

Localized path is not consistent #1370

Closed georgesve closed 1 week ago

georgesve commented 2 months ago

Current behaviour :

Admin path is /(:locale)/blog/admin Frontend path is /blog/(:locale)/slug

Capture d’écran 2024-05-13 à 11 34 11

Expected behaviour:

Admin path should be /(:locale)/blog/admin Frontend path should be /(:locale)/blog/slug

Current configuration :

Spina.rb

Spina.configure do |config|
  config.locales = [:fr, :en]
end

routes.rb

scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do
  mount Spina::Engine => '/blog'
end
stale[bot] commented 2 weeks ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.