From 824229b60048df190e07b6a69953e8095ac289e3 Mon Sep 17 00:00:00 2001 From: Peter Deltchev Date: Sun, 5 Jun 2016 02:18:57 -0700 Subject: [PATCH] Fixes #79: The back button works a lot better now. --- resources/assets/scripts/app/controllers/application.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/scripts/app/controllers/application.coffee b/resources/assets/scripts/app/controllers/application.coffee index 5995a974..1dc45801 100644 --- a/resources/assets/scripts/app/controllers/application.coffee +++ b/resources/assets/scripts/app/controllers/application.coffee @@ -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 ]