diff --git a/data-browser/src/components/SideBar/DriveSwitcher.tsx b/data-browser/src/components/SideBar/DriveSwitcher.tsx
index 5dd36c14..7a13cafb 100644
--- a/data-browser/src/components/SideBar/DriveSwitcher.tsx
+++ b/data-browser/src/components/SideBar/DriveSwitcher.tsx
@@ -1,4 +1,10 @@
-import { classes, Resource, urls, useResources } from '@tomic/react';
+import {
+ classes,
+ Resource,
+ truncateUrl,
+ urls,
+ useResources,
+} from '@tomic/react';
import React, { useMemo } from 'react';
import {
FaCog,
@@ -21,7 +27,8 @@ const Trigger = buildDefaultTrigger(, 'Open Drive Settings');
function getTitle(resource: Resource): string {
return (
- (resource.get(urls.properties.name) as string) ?? resource.getSubject()
+ (resource.get(urls.properties.name) as string) ??
+ truncateUrl(resource.getSubject(), 20)
);
}
diff --git a/data-browser/src/hooks/useSavedDrives.ts b/data-browser/src/hooks/useSavedDrives.ts
index 84978077..c98ca68b 100644
--- a/data-browser/src/hooks/useSavedDrives.ts
+++ b/data-browser/src/hooks/useSavedDrives.ts
@@ -4,9 +4,9 @@ import { isDev } from '../config';
import { useSettings } from '../helpers/AppSettings';
const rootDrives = [
- window.location.origin,
- 'https://atomicdata.dev',
- ...(isDev() ? ['http://localhost:9883'] : []),
+ window.location.origin + '/',
+ 'https://atomicdata.dev/',
+ ...(isDev() ? ['http://localhost:9883/'] : []),
];
const arrayOpts = {
diff --git a/data-browser/src/routes/Routes.tsx b/data-browser/src/routes/Routes.tsx
index 46c74c71..f552e53c 100644
--- a/data-browser/src/routes/Routes.tsx
+++ b/data-browser/src/routes/Routes.tsx
@@ -18,7 +18,8 @@ import ResourcePage from '../views/ResourcePage';
import { ShareRoute } from './ShareRoute';
import { Sandbox } from './Sandbox';
-const homeURL = window.location.origin;
+/** Server URLs should have a `/` at the end */
+const homeURL = window.location.origin + '/';
const isDev = import.meta.env.MODE === 'development';
diff --git a/lib/src/authentication.ts b/lib/src/authentication.ts
index 7173a6da..e05cdd60 100644
--- a/lib/src/authentication.ts
+++ b/lib/src/authentication.ts
@@ -58,6 +58,7 @@ export async function signRequest(
agent: Agent,
headers: HeadersObject | Headers,
): Promise {
+ console.log('sign request', subject);
const timestamp = getTimestampNow();
if (agent?.subject && !localTryingExternal(subject, agent)) {