Custom made pages
-
How are you serving these pages?
-
Is that in a plugin or theme?
Also, it looks like you're registering
/home
but have/custom
in the ACP setting. -
@PitaJ we have created a separate home page in Angular(typescript) and we are routing it from nodebb->src -> routes ->index.js in nodebb version 1.11
by using below mentioned code:
app.get('/home', [], function (req, res) {
res.sendFile(path.resolve('public/dist/homepage/index.html'));
});How can we route home.tpl(created using nodebb-plugin-custom-page) to this custom Angular home page
-
You don't need nodebb-plugin-custom-pages. In fact, that will interfere with what you're trying to do.
Just set the custom homepage in the ACP to "/home" and try that.
What happens when you access
/home
directly? -
@arc002 you should be able to search for "custom homepage route" in the ACP search to find it
You do have to select custom, then put in the route.
-
I looked at this on my environment and can reproduce the issue. It appears the logic to show this never really worked, that's a bug.
https://github.com/NodeBB/NodeBB/issues/8611
That's been fixed, you can cherry-pick this commit and try again
https://github.com/NodeBB/NodeBB/commit/64a457a441f38bc1f0d2f536ed303b7ff37684ae