Set document title on navigation to url path, refs #19369
[arvados-workbench2.git] / src / routes / route-change-handlers.ts
index eef52058529b69acd74f17416552561382487e03..bdc1ddc06325bb473dc7493595df0f42fd56c5a7 100644 (file)
@@ -60,6 +60,8 @@ const handleLocationChange = (store: RootStore) => ({ pathname }: Location) => {
         }
     }
 
+    document.title = `Arvados (${store.getState().auth.config.uuidPrefix}) - ${pathname.slice(1)}`;
+
     if (projectMatch) {
         store.dispatch(openProjectPanel(projectMatch.params.id));
     } else if (collectionMatch) {