mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
Solve Custom home page route error bug (#9180)
When you select Custom Route as home you get a 404 error "/custom not found" error. This because 'homePageRoute' property was used instead of 'homePageCustom'
This commit is contained in:
@@ -7,7 +7,7 @@ const meta = require('../meta');
|
||||
const user = require('../user');
|
||||
|
||||
function adminHomePageRoute() {
|
||||
return (meta.config.homePageRoute || meta.config.homePageCustom || '').replace(/^\/+/, '') || 'categories';
|
||||
return ((meta.config.homePageRoute === 'custom' ? meta.config.homePageCustom : meta.config.homePageRoute) || 'categories').replace(/^\//, '');
|
||||
}
|
||||
|
||||
async function getUserHomeRoute(uid) {
|
||||
|
||||
Reference in New Issue
Block a user