diff --git a/app/components/custom/layout/footer_component.html.erb b/app/components/custom/layout/footer_component.html.erb index 486ff58c4414..ee343b84ed9e 100644 --- a/app/components/custom/layout/footer_component.html.erb +++ b/app/components/custom/layout/footer_component.html.erb @@ -17,11 +17,20 @@ <% end %>
- <%= link_to page_path("cookies") do %> - + <% if cookies_setup_page_enabled? %> + + + + <% else %> + <%= link_to page_path("cookies") do %> + + <% end %> <% end %>
diff --git a/app/views/custom/layouts/application.html.erb b/app/views/custom/layouts/application.html.erb index 1a2aa0256757..40699c613fc9 100644 --- a/app/views/custom/layouts/application.html.erb +++ b/app/views/custom/layouts/application.html.erb @@ -11,6 +11,7 @@ <%= content_for :social_media_meta_tags %> <%= raw setting["html.per_page_code_head"] %> + <%= render Cookies::Vendors::ScriptsComponent.new %> <%= raw setting["html.per_page_code_body"] %> @@ -27,6 +28,8 @@ + <%= render Layout::CookiesConsent::BannerComponent.new %> + <%= render Layout::CookiesConsent::SetupComponent.new %>