How to render a partial based on route in Node Js?

Example:
I have content page in route “/product”. I want to render two component in this page.
First component on “/product” route and second is “/product/addProduct”. I use a navbar to change the route. I am changing the route internally in NODEJS. How do I render a partial based on routes ?

My site

Wappler code

Route setting

Community Page
Last updated: