diff options
author | Daniel Schaal <daniel@schaal.email> | 2017-06-08 07:23:39 +0200 |
---|---|---|
committer | Daniel Schaal <daniel@schaal.email> | 2017-06-10 11:19:07 +0200 |
commit | d5399b7b6d3c3404a5b0a1990a95b722d448a425 (patch) | |
tree | a848ea787579e39173bd0563d6dc4bba725fa2b5 | |
parent | 1fbb81e4697fa3dc272ebfc89d0aa906def05892 (diff) |
Set $locationProvider.hashPrefix to empty string
-rw-r--r-- | js/app/Config.js | 7 |
1 files changed, 6 insertions, 1 deletions
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 <dev@bernhard-posselt.com> * @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 |