Permalink
Browse files

fix category links where name has a dash

  • Loading branch information...
1 parent ce998ec commit 80955fce6e9d9fbedcd190d90f9248c9898bcb38 @DTrejo committed Mar 30, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 public/index.html
View
@@ -46,7 +46,8 @@
var container = $('.categories')
var template = $('.categories .template').removeClass('template')
_.each(categories, function(numtracks, catname) {
- var url = '/'+encodeURIComponent(catname)
+ catname = catname.replace(' ', '-')
+ var url = '/'+catname
var t = template.clone()
t.find('.catname').text(catname[0].toUpperCase() + catname.substr(1))
t.find('.numtracks').text(numtracks)

0 comments on commit 80955fc

Please sign in to comment.