handlebars.jsassemble

assemble relative page.dest not working after push to the server


## version 
"version": "0.1.0",

description

I am using relative page.dest to the path of my app, it is working fine perfect in my localhost.

http://localhost:9000/application/website/index.html

<li><a href="{{relative page.dest "application/website/index.html"}}">link 1</a></li>

the problem is when I push this to the server: so in the server exist a folder before application for the project called: clientwebsite

wwww.server.com/clientwebsite/application/website/index.html

so when I click in the any links goes to: wwww.server.com/application/website/index.html (does not exist)

instead of wwww.server.com/clientwebsite/application/website/index.html

someone know how to solve this problem?


Solution

  • I was missing in the path the folder dist/

    so I did like that:

    <li><a href="{{relative page.dest "dist/application/website/index.html"}}">link 1</a></li>
    

    now it is working perfectly