diff --git a/bower.json b/bower.json index f37d9d1..81c72a9 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "backbone.viewstack", - "version": "1.0.9", + "version": "1.0.10", "homepage": "https://github.com/vash15/backbone.viewstack", "authors": [ "Michele Belluco ", diff --git a/lib/viewstack.js b/lib/viewstack.js index c2c2480..b195d06 100644 --- a/lib/viewstack.js +++ b/lib/viewstack.js @@ -175,7 +175,7 @@ var ViewStack = module.exports = Backbone.View.extend({ url = url.join('/'); } - if ( context && context.page && typeof url == "string" ) + if ( context && context.page && typeof url == "string" && !_.isEmpty(url) ) context.page.navigate(url, { trigger: false }); return this;