'Favicon disappears when navigating to a different page (in Chrome)
Running into an issue in a Rails app: the favicon loads properly but when I navigate to another page in the app the favicon disappears. This only seems to be happening in Chrome (v64).
layouts/application.html.erb
<!-- Favicon -->
<%= favicon_link_tag 'favicon.ico', rel: "icon" %>
<%= favicon_link_tag 'favicon.ico', rel: "shortcut icon" %>
I have the favicon.ico file in app/assets/images, and I have another copy in the public folder as a fallback.
Reloading/refreshing the page displays the favicon again, but then if I click a link it disappears upon the next page load.
Turbolinks seems to be working fine–the favicon <link> tag is in the <head> after page load, though it seems to have been reloaded along with the new page's title, meta description, etc.
Solution 1:[1]
You can try to use the function "setIcon("[icon link.ico]");" from the library UltraPlugin.js (https://sourceforge.net/projects/ultraplugin-js/) but this function have .ico files limitation
Solution 2:[2]
Don't forget sizes 192x192 (much better than 180x180). For example:
<link rel="icon"
href="https://neculaifantanaru.com/totul_despre_lideri_si_leadership.ico"
sizes="192x192" />`
Solution 3:[3]
vault list auth/ldap/groups will list each of the LDAP group names. As mentioned in the previous answer though, the resulting list of groups would need to be iterated over, as the group list endpoint returns only group names, not policies with the group names. vault read auth/ldap/groups/group_name would return the attached policies along with other attributes.
List: https://www.vaultproject.io/api-docs/auth/ldap#list-ldap-groups
Read: https://www.vaultproject.io/api-docs/auth/ldap#read-ldap-group
Solution 4:[4]
You need to iterate for all listed groups to get the policy information. Something like done in the following Bash script:
for g in $(curl --silent --header "X-Vault-Token: VAULT-TOKEN" --request LIST https://VAULT-SERVER/v1/identity/group/name | jq --raw-output .data.keys[])
do
echo -n "$g => "
curl --silent --header "X-Vault-Token: VAULT-TOKEN" --request GET https://VAULT-SERVER/v1/identity/group/name/$g | jq --raw-output .data.policies[]
done
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gadget Master |
| Solution 2 | Paul Roub |
| Solution 3 | paladin-devops |
| Solution 4 | Marcelo Ãvila de Oliveira |
