This commit is contained in:
Ethan O'Brien 2021-08-25 14:32:47 -05:00 committed by GitHub
parent 88a67238b5
commit 63b62ff80a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,6 +42,9 @@ if (! path2Send.startsWith('/') && path2Send.split('://').length == 1 && path2Se
path2Send = window.location.protocol + '//' + window.location.host + path2Send
EJS_pathtodata = path2Send
}
if (EJS_pathtodata.startsWith('/')) {
EJS_pathtodata = window.location.protocol + '//' + window.location.host + path2Send
}
if (!EJS_pathtodata.endsWith('/')) {
EJS_pathtodata = EJS_pathtodata+'/'