This commit is contained in:
Barış Soner Uşaklı
2018-02-05 10:35:23 -05:00
parent d16667a5fb
commit 6cbd70d510

View File

@@ -77,7 +77,7 @@ define('notifications', ['sounds', 'translator', 'components', 'navigator', 'ben
payload.message = notifData.bodyShort;
payload.type = 'info';
payload.clickfn = function () {
if (notifData.path.startsWith('http') && notifData.path.startsWith('https')) {
if (notifData.path.startsWith('http') || notifData.path.startsWith('https')) {
window.location.href = notifData.path;
} else {
window.location.href = window.location.protocol + '//' + window.location.host + config.relative_path + notifData.path;