From 124c31fb363b5e01252e840d9f5d8b413bbbcdf3 Mon Sep 17 00:00:00 2001 From: yackob03 Date: Sat, 12 Oct 2013 13:24:55 -0400 Subject: [PATCH] Fix broken links that were still using fragment. --- static/js/controllers.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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({});