From 8cf38051f3115022f6d6ee65fa30602198ddb950 Mon Sep 17 00:00:00 2001 From: Ryan Ramage Date: Thu, 6 Sep 2012 16:14:28 -0600 Subject: [PATCH] small fix to get rid of some // urls --- lib/ui.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui.js b/lib/ui.js index 415f32d..a0b56f1 100644 --- a/lib/ui.js +++ b/lib/ui.js @@ -154,12 +154,16 @@ exports.addCategories = function () { } }); + var baseURL = utils.getBaseURL(window.location); + if (baseURL[baseURL.length - 1] !== '/') baseURL += '/'; + + $('#categories').replaceWith( templates['category_list.html']({ categories: categories, total_apps: total_apps, current_category: current_category, - baseURL : utils.getBaseURL(window.location) + '/' + baseURL : baseURL }) );