The issue is relative path referencing issue. Staring with ../ resolved peer of the current page path. So when you deploy it to hosting server then its peer of the current page path is difference then your local environment. If you read
link then you can easily understand the issue.