aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/app-routing.module.ts
diff options
context:
space:
mode:
authorKimsible <kimsible@users.noreply.github.com>2021-04-24 01:51:11 +0200
committerKimsible <kimsible@users.noreply.github.com>2021-05-05 11:47:03 +0200
commitff8c5ccf09cfe6a469777d4789625f8fdb004408 (patch)
tree9cf2ecf8b648afb354c20548b72d3e73927896d3 /client/src/app/app-routing.module.ts
parent9a911038d9ac38bf590e9199b3b7477ebf91de19 (diff)
downloadPeerTube-ff8c5ccf09cfe6a469777d4789625f8fdb004408.tar.gz
PeerTube-ff8c5ccf09cfe6a469777d4789625f8fdb004408.tar.zst
PeerTube-ff8c5ccf09cfe6a469777d4789625f8fdb004408.zip
Add shorter URLs for accounts and channels client-side
Diffstat (limited to 'client/src/app/app-routing.module.ts')
-rw-r--r--client/src/app/app-routing.module.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/client/src/app/app-routing.module.ts b/client/src/app/app-routing.module.ts
index 3ea5b7e5e..c0a2d29e4 100644
--- a/client/src/app/app-routing.module.ts
+++ b/client/src/app/app-routing.module.ts
@@ -5,6 +5,7 @@ import { MenuGuards } from '@app/core/routing/menu-guard.service'
5import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n' 5import { POSSIBLE_LOCALES } from '@shared/core-utils/i18n'
6import { PreloadSelectedModulesList } from './core' 6import { PreloadSelectedModulesList } from './core'
7import { EmptyComponent } from './empty.component' 7import { EmptyComponent } from './empty.component'
8import { ActorsComponent } from './+actors/actors.component'
8 9
9const routes: Routes = [ 10const routes: Routes = [
10 { 11 {
@@ -66,6 +67,18 @@ const routes: Routes = [
66 redirectTo: 'videos/watch/playlist' 67 redirectTo: 'videos/watch/playlist'
67 }, 68 },
68 { 69 {
70 path: 'a',
71 redirectTo: 'accounts'
72 },
73 {
74 path: 'c',
75 redirectTo: 'video-channels'
76 },
77 {
78 path: ':actorName',
79 component: ActorsComponent
80 },
81 {
69 path: '', 82 path: '',
70 component: EmptyComponent // Avoid 404, app component will redirect dynamically 83 component: EmptyComponent // Avoid 404, app component will redirect dynamically
71 } 84 }