Skip to content

Node.js based forum software built for the modern web

fixed incorrect twitter link generation in category view

Julian Lam2a946d52e0bb
diff --git a/src/categories.js b/src/categories.js
index 043b50ef89..42ddfa065b 100644
--- a/src/categories.js
+++ b/src/categories.js
@@ -31,7 +31,7 @@ var RDB = require('./redis.js'),
'category_id': category_id,
'active_users': [],
'topics' : [],
- 'twitter-intent-url': 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(global.config.url + 'category/' + category_id + '/' + category_slug) + '&text=' + encodeURIComponent(category_name)
+ 'twitter-intent-url': 'https://twitter.com/intent/tweet?url=' + encodeURIComponent(global.config.url + 'category/' + category_slug) + '&text=' + encodeURIComponent(category_name)
};
function getTopics(next) {