don't break back button on bail

This commit is contained in:
Leo Horie 2016-12-26 12:18:51 -05:00
parent 6c93791979
commit e8f36e4e26

View file

@ -15,7 +15,7 @@ module.exports = function($window, redrawService) {
if (render != null) redrawService.render(root, render(Vnode(component, attrs.key, attrs)))
}
var bail = function() {
routeService.setPath(defaultRoute)
routeService.setPath(defaultRoute, null, {replace: true})
}
routeService.defineRoutes(routes, function(payload, params, path) {
var update = lastUpdate = function(routeResolver, comp) {