diff --git a/static/js/docdock.js b/static/js/docdock.js
index d68069cd1df..e18e0440828 100644
--- a/static/js/docdock.js
+++ b/static/js/docdock.js
@@ -99,6 +99,9 @@ function fallbackMessage(action) {
}
jQuery(document).ready(function() {
+
+ baseurl = baseurl.endsWith('/')?baseurl:baseurl+'/';
+
jQuery('#sidebar .category-icon').on('click', function() {
$( this ).toggleClass("fa-angle-down fa-angle-right") ;
$( this ).parent().parent().children('ul').toggle() ;
@@ -185,7 +188,7 @@ jQuery(document).ready(function() {
clipInit = true;
}
- code.after('');
+ code.after('');
code.next('.copy-to-clipboard').on('mouseleave', function() {
$(this).attr('aria-label', null).removeClass('tooltipped tooltipped-s tooltipped-w');
});