I have a controller action: create which is responding to json format and html.
respond_to do |format|
if @pr.save
format.html {redirect_to(some_path)}
format.json {render json: @pr, status: :ok}
else
format.html {}
format.json {}
end
end
So from a angular service I send a post request to this action, if it is successful I would like to redirect the user to some_path
in my server log I see that redirect bing made, but the page is not changing.
How can I fix this? I am using turbo links as well so I would like not loading all the files again.