Skip to content

Commit 13071dd

Browse files
committed
Fix bug in dataset upload where the datastore uri was discarded
1 parent 82e67fe commit 13071dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

conf/application.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,3 +382,6 @@ externalPathDeletionService {
382382

383383
# uncomment these lines for faster restart during local backend development (but beware the then-missing features):
384384
#slick.checkSchemaOnStartup = false
385+
386+
play.modules.disabled += "com.scalableminds.webknossos.datastore.DataStoreModule"
387+
play.http.router = "noDS.Routes"

frontend/javascripts/libs/resumable-upload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ const helpers = {
243243
return target(params);
244244
}
245245

246-
const url = new URL(target as string, window.location.origin);
246+
const url = new URL(target as string);
247247
Object.entries(params).forEach(([key, value]) => {
248248
url.searchParams.append(key, value);
249249
});
250250

251-
return url.pathname + url.search;
251+
return url;
252252
},
253253
};
254254

0 commit comments

Comments
 (0)