feat: Use portal logo as favicon in helpcenter pages (#11289)

- Added favicon link to portal layout when logo is present
- Added tests to verify favicon behavior with and without logo
This commit is contained in:
Sojan Jose
2025-04-14 19:59:56 -07:00
committed by GitHub
parent a1f61f0e21
commit 78a40114ef
2 changed files with 30 additions and 0 deletions

View File

@@ -39,6 +39,10 @@ By default, it renders:
<% else %>
<title><%= @portal.page_title%></title>
<% end %>
<% if @portal.logo.present? %>
<link rel="icon" href="<%= url_for(@portal.logo) %>">
<% end %>
<% unless @theme_from_params.blank? %>
<%# this adds the theme from params, ensuring that there a localstorage value set %>