Skip to content

Node.js based forum software built for the modern web

removed rel path, its in templates

barisusakli0ff5c65f43c6
diff --git a/src/user/notifications.js b/src/user/notifications.js
index 7cc309d1a8..477a9cf53f 100644
--- a/src/user/notifications.js
+++ b/src/user/notifications.js
@@ -130,9 +130,9 @@ var async = require('async'),
notification.path = pidToPaths[notification.pid] || notification.path || '';
if (notification.nid.startsWith('chat')) {
- notification.path = nconf.get('relative_path') + '/chats/' + notification.user.userslug;
+ notification.path = '/chats/' + notification.user.userslug;
} else if (notification.nid.startsWith('follow')) {
- notification.path = nconf.get('relative_path') + '/user/' + notification.user.userslug;
+ notification.path = '/user/' + notification.user.userslug;
}
notification.datetimeISO = utils.toISOString(notification.datetime);
@@ -176,7 +176,7 @@ var async = require('async'),
var postIndex = utils.isNumber(results.indices[index]) ? parseInt(results.indices[index], 10) + 1 : null;
if (slug && postIndex) {
- pidToPaths[pid] = nconf.get('relative_path') + '/topic/' + slug + '/' + postIndex;
+ pidToPaths[pid] = '/topic/' + slug + '/' + postIndex;
}
});