diff --git a/js/router.js b/js/router.js index 9c5bbcb00..d9e14ecc0 100644 --- a/js/router.js +++ b/js/router.js @@ -375,7 +375,7 @@ module.exports = Backbone.Router.extend({ userModel: this.userModel, userProfile: this.userProfile, userID: userID, - state: state, + state: state === 'listing' && !itemHash ? 'store' : state, itemHash: itemHash, socketView: this.socketView, skipNSFWmodal: skipNSFWmodal diff --git a/js/views/userPageVw.js b/js/views/userPageVw.js index 1e41a67eb..902404421 100644 --- a/js/views/userPageVw.js +++ b/js/views/userPageVw.js @@ -499,7 +499,7 @@ UserPageVw = pageVw.extend({ options = options || {}; - if (state === "listing"){ + if (state === "listing" && hash){ //clear old templates this.$el.find('.js-list4').html(""); this.tabClick(this.$el.find('.js-storeTab'), this.$el.find('.js-item')); @@ -534,7 +534,7 @@ UserPageVw = pageVw.extend({ } this.tabClick(this.$el.find(".js-" + state + "Tab"), this.$el.find(".js-" + state)); this.addTabToHistory(state, options.replaceHistory); - } else if (state){ + } else if (state && state !== 'listing'){ this.tabClick(this.$el.find(".js-" + state + "Tab"), this.$el.find(".js-" + state)); } else { //if no state was set