Use $location.url instead of $location.path to get clean page URL without hash arguments of the previous page.

This happpens with room URL like http://127.0.0.1:8080/matrix/client/#/room/#public:localhost. The second hash part is transferred to the next page when using $location.path.
This commit is contained in:
Emmanuel ROHEE 2014-08-22 11:43:54 +02:00
parent acf5127604
commit dde50d4245
4 changed files with 10 additions and 10 deletions

View file

@ -66,7 +66,7 @@ angular.module('MatrixWebClientController', ['matrixService'])
matrixService.saveConfig();
// And go to the login page
$location.path("login");
$location.url("login");
};
// Listen to the event indicating that the access token is no longer valid.