From 810f34a648a8768f446159be4dab871726bc9515 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Thu, 3 Sep 2015 12:22:09 +0200 Subject: [PATCH] Fixed record of history. --- .../app/controllers/_application_controller.js.coffee | 2 +- .../javascripts/app/lib/app_post/interface_handle.js.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.js.coffee b/app/assets/javascripts/app/controllers/_application_controller.js.coffee index e5ad8a225..1483b5ab0 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.js.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.js.coffee @@ -30,7 +30,7 @@ class App.Controller extends Spine.Controller @ajaxCalls.push ajaxId navigate: (location, hideCurrentLocationFromHistory = false) -> - @log 'notice', "navigate to '#{location}', hide from history '#{hideCurrentLocationFromHistory}'" + @log 'debug', "navigate to '#{location}', hide from history '#{hideCurrentLocationFromHistory}'" # hide current location from browser history, allow to use back button in browser if hideCurrentLocationFromHistory diff --git a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee index 8b441f358..e2d8431cd 100644 --- a/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee +++ b/app/assets/javascripts/app/lib/app_post/interface_handle.js.coffee @@ -91,7 +91,7 @@ class App.Content extends App.ControllerWidgetPermanent # needed to mute "redirect" url to support browser back history = App.Config.get('History') if history[10] - history.pop() + history.shift() history.push window.location.hash # execute controller