demarches-normaliennes/app/controllers
Pierre de La Morinerie 51cb3a04a3 app: fix JS redirection with Turbolinks disabled
When Turbolinks is enabled, a `redirect_to` in a `format: :js` request
will emit code that instructs Turbolinks to navigate to the page.
Turbolinks will then load the redirection target as HTML, and display
it.

But with Turbolinks disabled, the same `redirect_to` will instead
respond with a standard `302: redirect`. `Rails.ajax` will interpret
this redirect as "Please perform the same call again to the redirected
URL, in the same format" – and request our redirection target, but
using `format: :js`.


This breaks the "Publish procedure" button. In that case, we really want
the page to be navigated to. Add an explicit JS redirect, so that the
redirection occurs in HTML.
2020-05-13 11:04:16 +02:00
..
admin app: fix JS redirection with Turbolinks disabled 2020-05-13 11:04:16 +02:00
administrateurs fix error message during admin activation error 2020-03-05 12:01:16 +00:00
administrations layouts: rename "application" to "application_old" 2019-01-07 12:17:05 +01:00
api [GraphQL] Add more filters to dossiers 2019-11-07 22:07:42 +01:00
champs import GPX file in browser [Carto] 2020-05-11 11:36:36 +02:00
concerns add attachment when instructor asking for a review 2020-03-04 13:35:29 +00:00
devise sign_in: extract the procedure context to a ProcedureContextConcern 2019-01-17 11:07:09 +01:00
france_connect Rename gestionnaire in code to instructeur 2019-08-12 13:47:01 +02:00
instructeurs return bilan bdf csv for expert 2020-05-11 13:05:50 +02:00
manager Undo discard dossiers and demarches from manager 2020-03-31 17:08:28 +02:00
new_administrateur store specific api-entreprise token for a procedure 2020-04-28 15:17:11 +02:00
users store attestation fiscale and display 2020-04-30 11:39:54 +02:00
admin_controller.rb Remove “avec_lien” helpers now that Procedure.path cannot be nil 2019-09-17 16:30:48 +02:00
api_controller.rb Enable flipflop on api requests 2019-03-12 14:02:55 +01:00
api_geo_test_controller.rb Revert "Revert "Merge pull request #4552 from tchak/champ-communes"" 2020-01-14 18:46:07 +01:00
application_controller.rb improve code readbility 2020-03-20 10:41:36 +01:00
attachments_controller.rb attachments: remove the buggy fallback 2020-04-09 10:40:08 +02:00
demandes_controller.rb layouts: rename "application" to "application_old" 2019-01-07 12:17:05 +01:00
invites_controller.rb include store_location_extension for all controllers 2020-03-20 10:41:36 +01:00
ping_controller.rb Add back content_type 2018-02-06 14:07:20 +01:00
root_controller.rb app: allow hiding the browser banner for one week 2019-12-03 16:09:18 +01:00
stats_controller.rb Update rubocop roules 2020-03-17 11:25:21 +01:00
support_controller.rb Cleanup application_controller and current_user 2019-09-17 12:37:37 +02:00
webhook_controller.rb webhook: fix a crash when the Helpscout customer is unknown 2019-11-04 18:36:52 +01:00