diff --git a/README.md b/README.md
index b0f317fc47..36c8253255 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
#
-
+[](https://david-dm.org/designcreateplay/nodebb)
**NodeBB Forum Software** is powered by Node.js and built on a Redis database. It utilizes web sockets for instant interactions and real-time notifications. NodeBB is compatible down to IE8 and has many modern features out of the box such as social network integration and streaming discussions.
diff --git a/public/src/forum/topic.js b/public/src/forum/topic.js
index 33b6fbc4a2..b42a970001 100644
--- a/public/src/forum/topic.js
+++ b/public/src/forum/topic.js
@@ -484,7 +484,7 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
$('#post-container').on('shown.bs.dropdown', '.share-dropdown', function() {
var pid = $(this).parents('.post-row').attr('data-pid');
- $('#post_' + pid + '_link').val(window.location.href + "#" + pid);
+ $('#post_' + pid + '_link').val(window.location.protocol + '//' + window.location.host + window.location.pathname + '#' + pid);
// without the setTimeout can't select the text in the input
setTimeout(function() {
$('#post_' + pid + '_link').putCursorAtEnd().select();
@@ -1055,7 +1055,6 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
offset = 0;
}
-
if($('#post_anchor_' + pid).length) {
return scrollToPid(pid);
}
@@ -1093,8 +1092,8 @@ define(['composer', 'forum/pagination'], function(composer, pagination) {
tid = $('#post-container').attr('data-tid');
function animateScroll() {
- $('window,html').animate({
- scrollTop: scrollTo.offset().top - $('#header-menu').height() - offset
+ $("html, body").animate({
+ scrollTop: (scrollTo.offset().top - $('#header-menu').height() - offset) + "px"
}, duration !== undefined ? duration : 400, function() {
updateHeader();
});
diff --git a/public/src/templates.js b/public/src/templates.js
index 866e076302..086eca12c1 100644
--- a/public/src/templates.js
+++ b/public/src/templates.js
@@ -410,7 +410,8 @@
} else {
// clean up all undefined conditionals
template = template.replace(//gi, 'ENDIF -->')
- .replace(//gi, '');
+ .replace(//gi, '')
+ .replace(//gi, '');
}
return template;
diff --git a/public/templates/category.tpl b/public/templates/category.tpl
index 0f4f97748a..c437ceac2d 100644
--- a/public/templates/category.tpl
+++ b/public/templates/category.tpl
@@ -43,11 +43,7 @@
todo: add a check for config.allowTopicsThumbnail if issue#1066 is a win
-->
-
-
-
-
-
+