Merge pull request #10183 from colinux/fix-switch-domain-banner

Tech: corrige protocole http -> https pour tester la connectivité sur la favicon en prod
This commit is contained in:
Colin Darie 2024-03-25 10:18:38 +00:00 committed by GitHub
commit efebcfbc52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

View file

@ -1,6 +1,6 @@
- if auto_switch?
:javascript
const hintUrl = "http://#{ApplicationHelper::APP_HOST}/favicon.ico"
const hintUrl = "#{request.protocol}#{ApplicationHelper::APP_HOST}/favicon.ico"
fetch(hintUrl, { mode: 'cors' }).then(() => {
window.location = '#{new_host_url}';

Binary file not shown.

Before

Width:  |  Height:  |  Size: 0 B

After

Width:  |  Height:  |  Size: 15 KiB