mardi 22 août 2017

How to redirect_to with status code 200 strictly?

  1. I am maintaining a rails 4 application.
  2. In it the front end is designed using angular so all the html pages are present in public and obviously lot of redirect_to in the application.
  3. But the issue is that when ever the rails application do a redirect to it send the status code as 302 but the requirement is status code should be 200 ok only.
  4. Is their a way in rails to strictly send the status code to 200 ok always on all redirect_to. format.html { redirect_to root_path + '#/menu' }

now,How to redirect_to using status code 200 ok

Aucun commentaire:

Enregistrer un commentaire