mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 21:44:56 -04:00
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:
parent
acf5127604
commit
dde50d4245
4 changed files with 10 additions and 10 deletions
|
@ -293,7 +293,7 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
|
|||
else {
|
||||
// In case of issue, go to the default page
|
||||
console.log("Error: cannot extract room alias");
|
||||
$location.path("/");
|
||||
$location.url("/");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
|
|||
function () {
|
||||
// In case of issue, go to the default page
|
||||
console.log("Error: cannot resolve room alias");
|
||||
$location.path("/");
|
||||
$location.url("/");
|
||||
});
|
||||
}
|
||||
};
|
||||
|
@ -364,7 +364,7 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
|
|||
matrixService.leave($scope.room_id).then(
|
||||
function(response) {
|
||||
console.log("Left room ");
|
||||
$location.path("rooms");
|
||||
$location.url("rooms");
|
||||
},
|
||||
function(error) {
|
||||
$scope.feedback = "Failed to leave room: " + error.data.error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue