fix(frontend): fixed changing location
before we were setting the location on the window when we should have been just using Angular $location service instead [TESTING -> tested locally with docker compose and a complete build] - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
a6b7560fdc
commit
6e533e3627
4 changed files with 12 additions and 10 deletions
|
@ -38,7 +38,8 @@ angular.module('quay').directive('signupForm', function () {
|
|||
$scope.userRegistered({'username': $scope.newUser.username});
|
||||
|
||||
if (!$scope.awaitingConfirmation && !$scope.inviteCode) {
|
||||
document.location = '/';
|
||||
$location.path("/");
|
||||
|
||||
}
|
||||
|
||||
UserService.load();
|
||||
|
|
Reference in a new issue