From 6589f543e67a1b2cc29fca01779263af19f5b17a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 28 Jan 2023 05:09:16 +0530 Subject: [PATCH] Handle the new /@ URLs --- src/components/NewChannelRedirect.vue | 16 ++++++++++++++++ src/router/index.js | 4 ++++ 2 files changed, 20 insertions(+) create mode 100644 src/components/NewChannelRedirect.vue diff --git a/src/components/NewChannelRedirect.vue b/src/components/NewChannelRedirect.vue new file mode 100644 index 0000000..b4f903e --- /dev/null +++ b/src/components/NewChannelRedirect.vue @@ -0,0 +1,16 @@ + + + diff --git a/src/router/index.js b/src/router/index.js index d2c93d6..cd5552a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -58,6 +58,10 @@ const routes = [ name: 'Channel', component: () => import('@/routes/Channel') }, + { + path: '/@:channelId', + component: () => import('@/components/NewChannelRedirect') + }, { path: '/:videoId([a-zA-Z0-9_-]{11})', component: () => import('@/components/Video/VideoRedirect')