From 5bfcf51a1f00b974e480e2c1ecd56b5a85b0bf2a Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 18 Feb 2013 16:03:11 +0530 Subject: [PATCH] fix URL controller --- static/js/pandora/URL.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/URL.js b/static/js/pandora/URL.js index b556ebaa9..a1aaf048a 100644 --- a/static/js/pandora/URL.js +++ b/static/js/pandora/URL.js @@ -78,11 +78,11 @@ pandora.URL = (function() { } else { - var set = { - section: state.type == pandora.site.itemsSection ? 'items' : state.type, - page: '' - }; - set[set.section.slice(0, -1)] = state.item; + var set = {page: ''}; + if (state.type) { + set.section = state.type == pandora.site.itemsSection ? 'items' : state.type + set[set.section.slice(0, -1)] = state.item; + } if (set.section == 'items') { if (state.view) {