Show Modal from layout page nodejs

In sites developed with PHP I often insert in the navbar menu (to be included in the pages) a link to view a Modal present on each page.
Now for a site developed in nodeJS I am trying to do the same by including the link in the navbar menu of the layout page
Unfortunately, however, in this case it does not work
This the code in menu navbar

Community Page
Last updated: