mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fix: broken test for meta tags on ajaxify
This commit is contained in:
		| @@ -179,8 +179,6 @@ module.exports = function (middleware) { | ||||
| 				templateValues.browserTitle = results.browserTitle; | ||||
| 				templateValues.navigation = results.navigation; | ||||
| 				templateValues.unreadCount = unreadCount; | ||||
| 				templateValues.metaTags = data._header.tags.meta; | ||||
| 				templateValues.linkTags = data._header.tags.link; | ||||
| 				templateValues.isAdmin = results.user.isAdmin; | ||||
| 				templateValues.isGlobalMod = results.user.isGlobalMod; | ||||
| 				templateValues.showModMenu = results.user.isAdmin || results.user.isGlobalMod || results.user.isMod; | ||||
| @@ -199,6 +197,11 @@ module.exports = function (middleware) { | ||||
| 				templateValues.template = { name: res.locals.template }; | ||||
| 				templateValues.template[res.locals.template] = true; | ||||
|  | ||||
| 				if (data.hasOwnProperty('_header')) { | ||||
| 					templateValues.metaTags = data._header.tags.meta; | ||||
| 					templateValues.linkTags = data._header.tags.link; | ||||
| 				} | ||||
|  | ||||
| 				if (req.route && req.route.path === '/') { | ||||
| 					modifyTitle(templateValues); | ||||
| 				} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user