# Angular Translate not working with $location.path in AngularJS I have an AngularJS 1.0.7 web app. For translations I´m using Angular Translate (it´s an old version that is compatible with my angular version, but the translations are working initially). I´m sorry that I´m not able to migrate to a newer version at this moment, so that is not a solution. I have an strange issue. In home page I have two links to a same page B (let´s say about). But, one is a real link and the other is a button that executes a function with a redirection with$location.path(page-b) to page B.

partials/home.html:

<a href="/:language/about">Link without location.path</a>
<button ng-click="test()">Redirection with location.path</button>


Home controller:

$translatePartialLoader.addPart('common');$translatePartialLoader.addPart('home');
$translate.refresh().then(function() { // do whatever });$scope.test = function() {
$location.path('localhost/:language/about'); };  Page B (about.html): Hello {{var1}}  Page B has a controller that loads some partial translation json files in angular translate, like: AboutCtrl $translatePartialLoader.addPart('about');
$translate.refresh().then(function(result) {$scope.var1 = $translate('LABEL'); });  For some reason, when I click in the link in home page or I´m in page about and reload it the translations works great and I can see them. I mean the translations are working. But if I click the button that redirects to page about with$location.path, the translation is not working. I mean, only it´s not working in the scenario that the new page is loaded with \$location.path.

Please find this plunker: https://plnkr.co/edit/Mys8HBfC9pShkiXudMIy?p=preview, that I´m not able to make it work do to the partials, but it´s ok for a better understanding of the structure.

Please let me know if you are missing anything.

If I´m not wrong this issue is pretty similar or exactly like this: https://github.com/angular-translate/angular-translate/issues/306 but to be honest, I´m not able to find a workaround at the moment.

Source: AngularJS