diff --git a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js index 8983318b3..501427fd4 100644 --- a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js +++ b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/bootstrap.js @@ -24,10 +24,10 @@ var angularStrutsApp = angular.module('angularStrutsApp', ['ngRoute']); angularStrutsApp.config(['$routeProvider', function($routeProvider) { $routeProvider.when('/projects', { - templateUrl: '/partials/projects.html', + templateUrl: 'partials/projects.html', controller: 'ApacheProjectsController' }).when('/home', { - templateUrl: '/partials/home.html', + templateUrl: 'partials/home.html', controller: 'HomeController' }).otherwise({ redirectTo: '/home' }); } diff --git a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js index 01afe21cf..9a5b71f0d 100644 --- a/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js +++ b/archetypes/struts2-archetype-angularjs/src/main/resources/archetype-resources/src/main/webapp/js/controllers.js @@ -26,7 +26,7 @@ angularStrutsApp.controller('HomeController', function ($scope) { angularStrutsApp.controller('ApacheProjectsController', function ($scope, $http) { this.init = function() { - $http({method: 'GET', url: '/projects'}). + $http({method: 'GET', url: 'projects'}). success(function(data) { $scope.projects = data.projectNames; }).