mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Ensure we use respond_to
Otherwise, this breaks redireects from turbo, resulting in rendering empty html without a layout
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user