mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-31 03:40:16 +01:00
closes #6307
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user