forked from Archives/Athou_commafeed
make chrome think every bookmark click is a different url in order to create history entries (fix #488)
This commit is contained in:
@@ -1406,6 +1406,7 @@ module.controller('HelpController', ['$scope', 'CategoryService', 'AnalyticsServ
|
||||
$scope.infos = ServerService.get();
|
||||
$scope.categoryId = 'all';
|
||||
$scope.order = 'desc';
|
||||
$scope.baseUrl = window.location.href.substring(0, window.location.href.lastIndexOf('#'));
|
||||
|
||||
}]);
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
var app = angular.module('commafeed', ['ui', 'ui.bootstrap', 'ui.state', 'commafeed.directives', 'commafeed.controllers',
|
||||
'commafeed.services', 'commafeed.filters', 'ngSanitize', 'infinite-scroll', 'ngGrid']);
|
||||
|
||||
app.config(['$routeProvider', '$stateProvider', '$urlRouterProvider', '$httpProvider',
|
||||
function($routeProvider, $stateProvider, $urlRouterProvider, $httpProvider) {
|
||||
app.config(['$routeProvider', '$stateProvider', '$urlRouterProvider', '$httpProvider', '$compileProvider',
|
||||
function($routeProvider, $stateProvider, $urlRouterProvider, $httpProvider, $compileProvider) {
|
||||
|
||||
$compileProvider.urlSanitizationWhitelist(/^\s*(https?|ftp|mailto|javascript):/);
|
||||
var interceptor = ['$rootScope', '$q', function(scope, $q) {
|
||||
|
||||
var success = function(response) {
|
||||
|
||||
@@ -69,7 +69,7 @@
|
||||
<option value="desc">${about.goodies.subscribe_bookmarklet_desc}</option>
|
||||
<option value="asc">${about.goodies.subscribe_bookmarklet_asc}</option>
|
||||
</select>
|
||||
<a href="next?category={{categoryId}}&order={{order}}" target="_blank">${global.link}</a>
|
||||
<a href="javascript:window.location.href='{{baseUrl}}next?category={{categoryId}}&order={{order}}&t='+new Date().getTime();" target="_blank">${global.link}</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user