diff --git a/app/views/devise/shared/_links.haml b/app/views/devise/shared/_links.haml index 8d7e9a42..f623ce8a 100644 --- a/app/views/devise/shared/_links.haml +++ b/app/views/devise/shared/_links.haml @@ -1,6 +1,6 @@ %hr/ -- locale = pluck_param(:locale, optional: true).to_h +- locale = { locale: (pluck_param(:locale, optional: true) || I18n.locale) } - if controller_name != 'sessions' = link_to t('.sign_in'), new_session_path(resource_name, params: locale),