diff --git a/static/js/controllers.js b/static/js/controllers.js index 36473ea5c..dd971579c 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -73,7 +73,7 @@ function HeaderCtrl($scope, UserService) { $('#repoSearch').on('typeahead:selected', function (e, datum) { $('#repoSearch').typeahead('setQuery', ''); - document.location = '#/repository/' + datum.repo.namespace + '/' + datum.repo.name + document.location = '/repository/' + datum.repo.namespace + '/' + datum.repo.name }); } @@ -86,7 +86,7 @@ function PlansCtrl($scope, UserService, PlanService) { $scope.buyNow = function(plan) { if ($scope.user && !$scope.user.anonymous) { - document.location = '#/user?plan=' + plan; + document.location = '/user?plan=' + plan; } else { $('#signinModal').modal({}); } @@ -159,7 +159,7 @@ function LandingCtrl($scope, $timeout, Restangular, UserService, KeyService) { }; $scope.browseRepos = function() { - document.location = '/#/repository'; + document.location = '/repository/'; }; $scope.register = function() { @@ -443,7 +443,7 @@ function RepoAdminCtrl($scope, Restangular, $routeParams, $rootScope) { $scope.repo = null; setTimeout(function() { - document.location = '/#/repository'; + document.location = '/repository/'; }, 1000); }, function() { $('#cannotchangeModal').modal({});