mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	Closes #3302
- Fixes issue where the served path for the favicon was incorrect (included relative path when one was not needed) - Also fixes issue where favicons were just plain not served for subfolder installations - Fixed unsemantic HTML in ACP/General regarding Site Logo and Favicon fieldsets
This commit is contained in:
		| @@ -22,7 +22,7 @@ var middleware = {}; | ||||
| function setupFavicon(app) { | ||||
| 	var faviconPath = path.join(__dirname, '../../', 'public', meta.config['brand:favicon'] ? meta.config['brand:favicon'] : 'favicon.ico'); | ||||
| 	if (fs.existsSync(faviconPath)) { | ||||
| 		app.use(favicon(faviconPath)); | ||||
| 		app.use(nconf.get('relative_path'), favicon(faviconPath)); | ||||
| 	} | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user