Remove /u/ and /c/ schemes from UI

This commit is contained in:
Azriel Lector 2020-07-29 11:16:27 +08:00
parent 52b221e3c9
commit 75fe38ab08
4 changed files with 16 additions and 14 deletions

2
.gitignore vendored
View file

@ -16,3 +16,5 @@ ui/src/translations
# ide config
.idea/
target

View file

@ -177,7 +177,7 @@ export class Community extends Component<any, State> {
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';
}

View file

@ -112,7 +112,7 @@ export class Inbox extends Component<any, InboxState> {
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 {

View file

@ -213,7 +213,7 @@ export class User extends Component<any, UserState> {
get documentTitle(): string {
if (this.state.siteRes.site.name) {
return `/u/${this.state.username} - ${this.state.siteRes.site.name}`;
return `@${this.state.username} - ${this.state.siteRes.site.name}`;
} else {
return 'Lemmy';
}
@ -234,7 +234,7 @@ export class User extends Component<any, UserState> {
class="rounded-circle mr-2"
/>
)}
<span>/u/{this.state.username}</span>
<span>@{this.state.username}</span>
</h5>
{this.state.loading ? (
<h5>