Hello everyone, I'm currently working on a project using NodeJs, Express, and AngularJS. I've encountered an issue where my page is unable to locate certain JavaScript and CSS files in the public static folder, resulting in a 404 error. Strangely enough, it seems to work perfectly fine for the second batch of files! It's quite perplexing, which is why I am reaching out after spending a considerable amount of time investigating this issue.
This bug only seems to occur when the project is hosted online. Interestingly, everything functions smoothly when accessed from my personal computer.
You can view the website here: Login credentials: [email protected] Password: a
If you inspect the source code of the page, you'll notice that some files load successfully while others don't. For instance: /css/style.css ====>> working /css/isteven-multi-select.css >> NOT working!
Additionally, it appears that the server redirects to the /home page when these missing files are requested. To illustrate this point, try manually opening
List of files in css folder:
ls -na public/css/
total 1020
drwxr-xr-x 2 0 0 4096 Oct 12 17:43 .
drwxr-xr-x 5 0 0 4096 Oct 13 18:06 ..
-rw-r--r-- 1 0 0 443882 Sep 5 17:02 angular-material.min.css
-rwxr-xr-x 1 0 0 122848 Oct 12 17:43 bootstrap.css
-rw-r--r-- 1 0 0 99548 Oct 12 17:43 bootstrap.min.css
-rw-r--r-- 1 0 0 7267 Oct 12 17:43 isteven-multi-select.css
-rw-r--r-- 1 0 0 354734 Sep 5 17:02 style.css
Any insights or suggestions would be greatly appreciated.