Fix broken links that were still using fragment.
This commit is contained in:
parent
281006a4ae
commit
124c31fb36
1 changed files with 4 additions and 4 deletions
|
@ -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({});
|
||||
|
|
Reference in a new issue