From 718873964490d1aa31b0e99852002165637e4b9e Mon Sep 17 00:00:00 2001 From: Kimsible Date: Wed, 28 Apr 2021 23:45:23 +0200 Subject: [PATCH] Make /a and /c default URLs for accounts and channels --- .../account-video-channels.component.ts | 2 +- .../+admin/users/user-edit/user-edit.component.html | 2 +- .../+admin/users/user-list/user-list.component.html | 2 +- .../my-video-channels.component.html | 4 ++-- .../my-subscriptions/my-subscriptions.component.html | 6 +++--- .../remote-interaction.component.ts | 2 +- client/src/app/+search/search.component.ts | 2 +- .../app/+video-channels/video-channels.component.ts | 2 +- .../comment/video-comment.component.html | 2 +- .../+video-watch/video-avatar-channel.component.html | 4 ++-- .../+videos/+video-watch/video-watch.component.html | 6 +++--- .../overview/video-overview.component.html | 2 +- client/src/app/app-routing.module.ts | 12 ++++++------ client/src/app/menu/menu.component.html | 2 +- client/src/app/root.component.ts | 8 ++++---- .../shared-abuse-list/abuse-list-table.component.ts | 2 +- .../shared-main/users/user-notification.model.ts | 2 +- .../shared-video-comment/video-comment.model.ts | 2 +- .../video-miniature.component.html | 8 ++++---- .../video-playlist-element-miniature.component.html | 2 +- .../video-playlist-miniature.component.html | 2 +- 21 files changed, 38 insertions(+), 38 deletions(-) diff --git a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts index 0628c7a96..96d1e0f85 100644 --- a/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts +++ b/client/src/app/+accounts/account-video-channels/account-video-channels.component.ts @@ -133,6 +133,6 @@ export class AccountVideoChannelsComponent implements OnInit, OnDestroy { } getVideoChannelLink (videoChannel: VideoChannel) { - return [ '/video-channels', videoChannel.nameWithHost ] + return [ '/c', videoChannel.nameWithHost ] } } diff --git a/client/src/app/+admin/users/user-edit/user-edit.component.html b/client/src/app/+admin/users/user-edit/user-edit.component.html index 5e92c0f36..772ebf272 100644 --- a/client/src/app/+admin/users/user-edit/user-edit.component.html +++ b/client/src/app/+admin/users/user-edit/user-edit.component.html @@ -10,7 +10,7 @@ diff --git a/client/src/app/+admin/users/user-list/user-list.component.html b/client/src/app/+admin/users/user-list/user-list.component.html index 44d8a7e87..5b4f35c77 100644 --- a/client/src/app/+admin/users/user-list/user-list.component.html +++ b/client/src/app/+admin/users/user-list/user-list.component.html @@ -87,7 +87,7 @@ - +
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html index e41cbe921..9f139b4f2 100644 --- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html +++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html @@ -17,10 +17,10 @@
- +
- +
{{ videoChannel.displayName }}
{{ videoChannel.nameWithHost }}
diff --git a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html index f91cebacf..1bd459059 100644 --- a/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html +++ b/client/src/app/+my-library/my-subscriptions/my-subscriptions.component.html @@ -14,17 +14,17 @@
- +
- +
{{ videoChannel.displayName }}
{{ videoChannel.nameWithHost }}
{{ videoChannel.followersCount }} subscribers
- + Created by {{ videoChannel.ownerBy }} diff --git a/client/src/app/+remote-interaction/remote-interaction.component.ts b/client/src/app/+remote-interaction/remote-interaction.component.ts index e24607b24..3ebe62f49 100644 --- a/client/src/app/+remote-interaction/remote-interaction.component.ts +++ b/client/src/app/+remote-interaction/remote-interaction.component.ts @@ -43,7 +43,7 @@ export class RemoteInteractionComponent implements OnInit { } else if (channelResult.data.length !== 0) { const channel = new VideoChannel(channelResult.data[0]) - redirectUrl = '/video-channels/' + channel.nameWithHost + redirectUrl = '/c/' + channel.nameWithHost } else { this.error = $localize`Cannot access to the remote resource` return diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts index ecede19a3..8a781cbe4 100644 --- a/client/src/app/+search/search.component.ts +++ b/client/src/app/+search/search.component.ts @@ -214,7 +214,7 @@ export class SearchComponent implements OnInit, OnDestroy { const linkType = this.getVideoLinkType() if (linkType === 'internal') { - return [ '/video-channels', channel.nameWithHost ] + return [ '/c', channel.nameWithHost ] } if (linkType === 'lazy-load') { diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 41fdb5e79..3833d9c54 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts @@ -112,7 +112,7 @@ export class VideoChannelsComponent implements OnInit, OnDestroy { } getAccountUrl () { - return [ '/accounts', this.videoChannel.ownerBy ] + return [ '/a', this.videoChannel.ownerBy ] } private loadChannelVideosCount () { diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.html b/client/src/app/+videos/+video-watch/comment/video-comment.component.html index d7ba40ef6..fc0d66ffd 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment.component.html +++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.html @@ -11,7 +11,7 @@