mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
fix breadcrumbs and home /api route not loading
This commit is contained in:
@@ -64,8 +64,7 @@ unreadController.get = function (req, res, next) {
|
||||
data.categories = results.watchedCategories.categories;
|
||||
data.selectedCategory = results.watchedCategories.selectedCategory;
|
||||
data.selectedCids = results.watchedCategories.selectedCids;
|
||||
|
||||
if (req.path.startsWith('/api/unread') || req.path.startsWith('/unread')) {
|
||||
if (req.originalUrl.startsWith(nconf.get('relative_path') + '/api/unread') || req.originalUrl.startsWith(nconf.get('relative_path') + '/unread')) {
|
||||
data.breadcrumbs = helpers.buildBreadcrumbs([{ text: '[[unread:title]]' }]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user