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

Commit a6d41e1

Browse files
committed
Use correct context in ncss javascript for url building.
1 parent 7db9a62 commit a6d41e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tds/src/main/webapp/js/ncss/ncssApp.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Ncss.initMapPreview = function () {
8383

8484
Ncss.buildAccessUrl = function () {
8585
var req = $("form").serialize();
86-
var serverUrl = document.URL.split("/thredds/")[0];
86+
var serverUrl = document.URL.split(context)[0];
8787
var dataUrl = serverUrl + $("#datasetPath")[0].innerHTML;
8888
$("#urlBuilder").html(dataUrl + "?" + req);
8989
};

0 commit comments

Comments
 (0)