diff options
author | elijah <elijah@riseup.net> | 2016-01-16 14:51:42 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2016-01-16 14:51:42 -0800 |
commit | 41d463b3572a628f0c505e0fefff19f1be9e3609 (patch) | |
tree | 5f6459e325fac101ed0d5bc0335f1b452301957c /app/controllers | |
parent | 6dba1392a29a003c3334259a222061f29ff04b13 (diff) |
retain locale in URL when logging in and signing up, and ajax actions in general.
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index a4cbfb5..079dc18 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -104,6 +104,6 @@ class ApplicationController < ActionController::Base # For some requests, we ignore locale determination. # def request_may_have_locale?(request) - request.method == "GET" && request.format == 'text/html' && request.path !~ NON_LOCALE_PATHS + request.path !~ NON_LOCALE_PATHS end end |