Removed # from the URL before using "{provide: LocationStrategy, useClass: HashLocationStrategy}" this in appModule file After Removing this getting 404 and
https://example.com/dashboard//home in logs i saw one extra '/' is getting added from NGINX
After NGINX Changes
location / {
alias /usr/share/nginx/html/;
try_files $uri $uri/ /index.html;
try_files $uri $uri/ = 404;
try_files $uri $uri/ /index.html =404;
}
tried these below 2 solution