$routeParams Hard Refresh not working on server (base tag needed) $routeParams Hard Refresh not working on server (base tag needed) angularjs angularjs

$routeParams Hard Refresh not working on server (base tag needed)


If anyone runs into a similar problem to this one, make sure that you put your

<base href="/">

At the top of your index.html file, directly underneath the title.

That's what eventually solved it for me.


Ok. In your index.html I see that there are multiple nested html elements with same controller. If you have applied the ng-controller="main" to your <body> tag then its not needed to add it again to its nested elements (child elements of body tag). Due to this nested scope of one single controller, it may cause the problems which you face.

Just add the controller to your body tag alone, or add a parent div which contains all that body contains, and then assign the controller to this parent div. And remove the redundant controller from other places.