diff --git a/app/controllers/locales_controller.rb b/app/controllers/locales_controller.rb new file mode 100644 index 00000000..8e483eb8 --- /dev/null +++ b/app/controllers/locales_controller.rb @@ -0,0 +1,5 @@ +class LocalesController < ApplicationController + def update + redirect_back(fallback_location: root_path) + end +end diff --git a/app/views/application/_navbar.html.erb b/app/views/application/_navbar.html.erb index d893a8b4..84f4978f 100644 --- a/app/views/application/_navbar.html.erb +++ b/app/views/application/_navbar.html.erb @@ -16,9 +16,9 @@ <%= link_to t("navbar.suggest_talk"),new_talk_path, class: "btn btn-primary hidden lg:flex" %> diff --git a/config/routes.rb b/config/routes.rb index e3d6a5cb..7b241c33 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -11,6 +11,7 @@ resources :talks, only: [ :new, :index, :create ] resource :lineup, only: [ :show ] resources :sponsors, only: [ :index ] + resource :locale, only: [ :update ] get "/communique_2022" => redirect("/communiques/thibault_assus_comdamnation", status: 301)