From d5399b7b6d3c3404a5b0a1990a95b722d448a425 Mon Sep 17 00:00:00 2001 From: Daniel Schaal Date: Thu, 8 Jun 2017 07:23:39 +0200 Subject: Set $locationProvider.hashPrefix to empty string --- js/app/Config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/js/app/Config.js b/js/app/Config.js index 4df6c9b00..c094c799d 100644 --- a/js/app/Config.js +++ b/js/app/Config.js @@ -7,7 +7,8 @@ * @author Bernhard Posselt * @copyright Bernhard Posselt 2014 */ -app.config(function ($routeProvider, $provide, $httpProvider) { +app.config( + function ($routeProvider, $provide, $httpProvider, $locationProvider) { 'use strict'; var feedType = { @@ -19,6 +20,10 @@ app.config(function ($routeProvider, $provide, $httpProvider) { EXPLORE: 5 }; + // default hashPrefix changed in angular 1.6 to '!' + // change back to empty string to keep links working + $locationProvider.hashPrefix(''); + // constants $provide.constant('REFRESH_RATE', 60); // seconds $provide.constant('ITEM_BATCH_SIZE', 40); // how many items should be -- cgit v1.2.3