mirror of
https://github.com/TeamPiped/Piped.git
synced 2025-10-12 02:18:30 +00:00
Add support for youtu.be 11 character redirects.
This commit is contained in:
17
src/components/VideoRedirect.vue
Normal file
17
src/components/VideoRedirect.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<div>Loading...</div>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
export default {
|
||||
activated() {
|
||||
const videoId = this.$route.params.videoId;
|
||||
if (videoId)
|
||||
this.$router.push({
|
||||
path: "/watch",
|
||||
query: { v: videoId },
|
||||
});
|
||||
},
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user