Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Use correct context in ncss javascript for url building.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesserwhirls committed Sep 16, 2020
1 parent 7db9a62 commit 5eedbfd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tds/src/main/webapp/js/ncss/ncssApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ Ncss.initMapPreview = function () {

Ncss.buildAccessUrl = function () {
var req = $("form").serialize();
var serverUrl = document.URL.split("/thredds/")[0];
//var serverUrl = document.URL.split("/thredds/")[0];
var serverUrl = document.URL.split(context)[0];
var dataUrl = serverUrl + $("#datasetPath")[0].innerHTML;
$("#urlBuilder").html(dataUrl + "?" + req);
};
Expand Down

0 comments on commit 5eedbfd

Please sign in to comment.