* mailto: fix wrong URL registered for on premise installation (you need to delete it in the browser first!)

Chrome: Datenschutz und Sicherheit > Website-Einstellungen > Zusätzliche-Berechtigungen (aufklappen!) > Protokoll-Handler
This commit is contained in:
ralf 2023-06-30 11:19:18 +02:00
parent 59854cfe3c
commit 4616fb03d0

View File

@ -38,7 +38,7 @@ egw.extend('config', egw.MODULE_GLOBAL, function()
{
const _ask_mailto_handler = () => {
let url = egw_webserverUrl;
if (url[0] === '/') url = document.location.protocol+'://'+document.location.hostname+(url !== '/' ? url : '');
if (url[0] === '/') url = document.location.protocol+'//'+document.location.hostname+(url !== '/' ? url : '');
navigator.registerProtocolHandler('mailto', url+'/index.php?menuaction=mail.mail_compose.compose&preset[mailto]=%s', 'Mail');
// remember not to ask again for this "session"
window.sessionStorage.setItem('asked-mailto-handler', 'yes');