ensure a trailing slash on the base_url

This commit is contained in:
Kyle Kelley 2017-04-07 09:36:04 -07:00
parent 189609ae42
commit 0a1b0309b7

View File

@ -36,7 +36,7 @@ require([
// 1.02 here arrived at by trial and error to make the spacing look right
var termColWidth = function() { return 1.02 * $("#dummy-screen-rows")[0].offsetWidth / 80;};
var base_url = utils.get_body_data('baseUrl');
var base_url = utils.get_body_data('baseUrl').replace(/\/?$/, '/');
var ws_path = utils.get_body_data('wsPath');
var ws_url = utils.get_body_data('wsUrl');
if (!ws_url) {