mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-19 21:40:27 +02:00
closes #4602
This commit is contained in:
@@ -84,7 +84,11 @@ define('notifications', ['sounds', 'translator', 'components'], function(sound,
|
||||
payload.message = notifData.bodyShort;
|
||||
payload.type = 'info';
|
||||
payload.clickfn = function() {
|
||||
window.location.href = config.relative_path + '/' + notifData.path;
|
||||
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;
|
||||
}
|
||||
};
|
||||
} else {
|
||||
payload.message = '[[notifications:you_have_unread_notifications]]';
|
||||
|
||||
Reference in New Issue
Block a user