Solve Custom home page route error bug ()

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'
v1.18.x
Manuel Valle committed by GitHub
parent 8ece64ab82
commit e14b67786c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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) {

Loading…
Cancel
Save