Ensure we use respond_to

Otherwise, this breaks redireects from turbo, resulting in rendering
empty html without a layout
This commit is contained in:
Oliver Günther
2024-09-13 09:12:17 +02:00
parent 1b57502e83
commit d267e85a2f
+5 -1
View File
@@ -34,7 +34,11 @@ class AngularController < ApplicationController
def empty_layout
# Frontend will handle rendering
# but we will need to render with layout
render html: "", layout: "angular/angular"
respond_to do |format|
format.html do
render html: "", layout: "angular/angular"
end
end
end
def login_back_url_params