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
|
@ajaxCalls.push ajaxId
|
||||||
|
|
||||||
navigate: (location, hideCurrentLocationFromHistory = false) ->
|
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
|
# hide current location from browser history, allow to use back button in browser
|
||||||
if hideCurrentLocationFromHistory
|
if hideCurrentLocationFromHistory
|
||||||
|
|
|
@ -91,7 +91,7 @@ class App.Content extends App.ControllerWidgetPermanent
|
||||||
# needed to mute "redirect" url to support browser back
|
# needed to mute "redirect" url to support browser back
|
||||||
history = App.Config.get('History')
|
history = App.Config.get('History')
|
||||||
if history[10]
|
if history[10]
|
||||||
history.pop()
|
history.shift()
|
||||||
history.push window.location.hash
|
history.push window.location.hash
|
||||||
|
|
||||||
# execute controller
|
# execute controller
|
||||||
|
|
Loading…
Reference in a new issue