diff --git a/packages/frontend/src/pages/embed/clip.vue b/packages/frontend/src/pages/embed/clip.vue index 0038a052a9..1635a1d8d3 100644 --- a/packages/frontend/src/pages/embed/clip.vue +++ b/packages/frontend/src/pages/embed/clip.vue @@ -68,7 +68,9 @@ function redirectIfNotEmbedPage() { router.replace(`/clips/${props.clipId}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); // デフォルト: true diff --git a/packages/frontend/src/pages/embed/note.vue b/packages/frontend/src/pages/embed/note.vue index 928494adc2..026e5e9bf6 100644 --- a/packages/frontend/src/pages/embed/note.vue +++ b/packages/frontend/src/pages/embed/note.vue @@ -32,7 +32,9 @@ function redirectIfNotEmbedPage() { router.replace(`/notes/${props.noteId}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); provide('EMBED_ORIGINAL_ENTITY_URL', `${url}/notes/${props.noteId}`); diff --git a/packages/frontend/src/pages/embed/user-timeline.vue b/packages/frontend/src/pages/embed/user-timeline.vue index 7faa4a6fbb..9aa2a7bdca 100644 --- a/packages/frontend/src/pages/embed/user-timeline.vue +++ b/packages/frontend/src/pages/embed/user-timeline.vue @@ -74,7 +74,9 @@ function redirectIfNotEmbedPage() { router.replace(`/@${props.username}`); } } + redirectIfNotEmbedPage(); + onActivated(redirectIfNotEmbedPage); // デフォルト: true