Fixed record of history.
This commit is contained in:
parent
727aeb9a19
commit
810f34a648
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue