demarches-normaliennes/app
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
..
assets app: disable Turbolinks 2020-05-13 11:04:16 +02:00
controllers app: fix JS redirection with Turbolinks disabled 2020-05-13 11:04:16 +02:00
dashboards Remove non-existant columns from manager dashboards 2020-03-26 16:17:07 +01:00
fields manager: remove support for old pj 2019-07-30 16:11:17 +02:00
graphql expose attestationSocialeAttachment and attestationFiscaleAttachment 2020-05-06 17:25:04 +02:00
helpers Show area and length on champ carto selections utilisateur 2020-04-23 10:21:18 +02:00
javascript app: disable Turbolinks 2020-05-13 11:04:16 +02:00
jobs Enable deletion of expired dossiers en_construction 2020-04-21 10:41:54 +02:00
lib make api entreprise call only if token not expired 2020-05-06 10:57:45 +02:00
mailers Handle processed dossiers in deletion mailers 2020-04-22 15:39:10 +02:00
models Unarchive dossier when repasser_en_instruction 2020-05-12 19:05:18 +02:00
policies policies: fix champ policy for guest users 2020-04-02 11:27:14 +02:00
serializers expose effectif_annuel dans api graphql 2020-04-23 09:53:27 +02:00
services fetch and store bilans bdf 2020-04-30 16:15:16 +02:00
validators gestion des 2 formats de bouton monavis 2019-09-17 13:39:45 +02:00
views app: disable Turbolinks 2020-05-13 11:04:16 +02:00