Fixes #79: The back button works a lot better now.

This commit is contained in:
Peter Deltchev 2016-06-05 02:18:57 -07:00
parent 5fe0eb1dfa
commit 824229b600

View file

@ -112,7 +112,7 @@ module.exports = angular.module('ponyfm').controller "application", [
try
$injector.invoke(preloader, null, {$state: stateToInject}).then ->
statesPreloaded[newState] = true
$state.transitionTo newState, newParams
$state.transitionTo newState, newParams, {location: 'replace'}
catch error
$state.transitionTo newState, newParams
]