feature: move docs
This commit is contained in:
@@ -142,8 +142,7 @@
|
||||
|
||||
function notificationURL(notification) {
|
||||
if (notification.resourceType !== 'document' || !notification.resourceId) return '';
|
||||
const path = notification.resourceId.replace(/^doc:/, '').split('/').map(encodeURIComponent).join('/');
|
||||
return '/docs/' + path;
|
||||
return '/documents/' + encodeURIComponent(notification.resourceId);
|
||||
}
|
||||
|
||||
// Listen for WebSocket notification events
|
||||
|
||||
Reference in New Issue
Block a user