diff --git a/__version__.py b/__version__.py index 124e6784c9..93d8b3f6da 100644 --- a/__version__.py +++ b/__version__.py @@ -5,7 +5,7 @@ # @website https://github.com/stochss/stochss # ============================================================================= -__version__ = '2.4' +__version__ = '2.4.1' __title__ = 'StochSS' __description__ = 'StochSS is an integrated development environment (IDE) \ for simulation of biochemical networks.' diff --git a/client/pages/job-presentation.js b/client/pages/job-presentation.js index ac698ec8f0..bbd7bf3173 100644 --- a/client/pages/job-presentation.js +++ b/client/pages/job-presentation.js @@ -61,9 +61,9 @@ let JobPresentationPage = PageView.extend({ self.renderSubviews(true); } }); - let downloadStart = "https://staging.stochss.org/stochss/job/download_presentation"; - this.downloadLink = downloadStart + "/" + owner + "/" + file; - this.openLink = "https://open.stochss.org?open=" + this.downloadLink; + let downloadStart = "/stochss/job/download_presentation"; + this.downloadLink = path.join(downloadStart, owner, file); + this.openLink = `https://open.stochss.org?open=${window.location.protocol}//${window.location.hostname}${this.downloadLink}`; }, render: function (attrs, options) { PageView.prototype.render.apply(this, arguments); diff --git a/client/pages/model-presentation.js b/client/pages/model-presentation.js index d7e77d9adf..41363048b6 100644 --- a/client/pages/model-presentation.js +++ b/client/pages/model-presentation.js @@ -60,9 +60,9 @@ let ModelPresentationPage = PageView.extend({ this.renderSubviews(true); } }); - let downloadStart = "https://live.stochss.org/stochss/download_presentation"; + let downloadStart = "/stochss/download_presentation"; this.downloadLink = path.join(downloadStart, owner, file); - this.openLink = "https://open.stochss.org?open=" + this.downloadLink; + this.openLink = `https://open.stochss.org?open=${window.location.protocol}//${window.location.hostname}${this.downloadLink}`; }, render: function (attrs, options) { PageView.prototype.render.apply(this, arguments); diff --git a/client/pages/notebook-presentation.js b/client/pages/notebook-presentation.js index 486ee06f0f..f7cf26774d 100644 --- a/client/pages/notebook-presentation.js +++ b/client/pages/notebook-presentation.js @@ -53,9 +53,9 @@ let NotebookPresentationPage = PageView.extend({ self.renderSubviews(true, null); } }); - let downloadStart = "https://live.stochss.org/stochss/notebook/download_presentation"; - this.downloadLink = downloadStart + "/" + owner + "/" + file; - this.openLink = "https://open.stochss.org?open=" + this.downloadLink; + let downloadStart = "/stochss/notebook/download_presentation"; + this.downloadLink = path.join(downloadStart, owner, file); + this.openLink = `https://open.stochss.org?open=${window.location.protocol}//${window.location.hostname}${this.downloadLink}`; }, render: function (attrs, options) { PageView.prototype.render.apply(this, arguments);