From 75fe38ab08b99740252d76b4aa98a3e3b941c7d0 Mon Sep 17 00:00:00 2001 From: Azriel Lector Date: Wed, 29 Jul 2020 11:16:27 +0800 Subject: [PATCH] Remove `/u/` and `/c/` schemes from UI --- .gitignore | 2 ++ ui/src/components/community.tsx | 2 +- ui/src/components/inbox.tsx | 10 +++++----- ui/src/components/user.tsx | 16 ++++++++-------- 4 files changed, 16 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index 236a729eb..6ae0ae193 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,5 @@ ui/src/translations # ide config .idea/ + +target diff --git a/ui/src/components/community.tsx b/ui/src/components/community.tsx index e1e747ae4..b29a3b4a3 100644 --- a/ui/src/components/community.tsx +++ b/ui/src/components/community.tsx @@ -177,7 +177,7 @@ export class Community extends Component { get documentTitle(): string { if (this.state.community.name) { - return `/c/${this.state.community.name} - ${this.state.site.name}`; + return `!${this.state.community.name} - ${this.state.site.name}`; } else { return 'Lemmy'; } diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index 5fe8a650f..927fee24c 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -112,7 +112,7 @@ export class Inbox extends Component { get documentTitle(): string { if (this.state.site.name) { - return `/u/${UserService.Instance.user.name} ${i18n.t('inbox')} - ${ + return `@${UserService.Instance.user.name} ${i18n.t('inbox')} - ${ this.state.site.name }`; } else { @@ -206,7 +206,7 @@ export class Inbox extends Component { return (