diff --git a/templates/common/app/index.html b/templates/common/app/index.html
index 1d69c2a65..cf3cceb8a 100644
--- a/templates/common/app/index.html
+++ b/templates/common/app/index.html
@@ -40,9 +40,9 @@
diff --git a/templates/javascript/app.js b/templates/javascript/app.js
index fdf19b617..43318d198 100644
--- a/templates/javascript/app.js
+++ b/templates/javascript/app.js
@@ -10,7 +10,7 @@
*/
angular
.module('<%= scriptAppName %>', [<%= angularModules %>])<% if (ngRoute) { %>
- .config(function ($routeProvider) {
+ .config(function ($routeProvider, $locationProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/main.html',
@@ -20,4 +20,6 @@ angular
.otherwise({
redirectTo: '/'
});
+
+ $locationProvider.hashPrefix('');
})<% } %>;