Fixed record of history.

This commit is contained in:
Martin Edenhofer 2015-09-03 12:22:09 +02:00
parent 727aeb9a19
commit 810f34a648
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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