There has been a lot of questions about this. I've been browsing them for days. I tried everything, and neither worked. Yes, I've checked angular.io too, and that didn't work either. So please, can someone come up with the ultimate answer or point me to one which I've probably not seen yet?
Here is this URL, a deep link to an Angular app called whatever
and its someroute
route with a parameter.
http://somedomain.com/whatever/someroute/123456
Of course it results in a 404 error. The web server has to be configured. My server runs nginx and I did this:
location / {
try_files $uri $uri/ /whatever/index.html;
}
Now it redirects every site's 404 error on this server to my Angular app, but that's a secondary issue. The problem is that the route still doesn't want to kick in. The default /
route is invoked every time, and not /someroute/123456
.
Instead of pointing to various tutorials which I've probably already seen and tried, can someone briefly explain what is the trivial point I missed?