diff options
| author | かっこかり <67428053+kakkokari-gtyih@users.noreply.github.com> | 2024-01-28 19:22:38 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-28 19:22:38 +0900 |
| commit | b62d9f3920d94f68a6e0339c7d73659bbf5a0150 (patch) | |
| tree | 8a97a7fd9b36c900084028fd325f753b67df4801 /packages/frontend/src/components | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-b62d9f3920d94f68a6e0339c7d73659bbf5a0150.tar.gz misskey-b62d9f3920d94f68a6e0339c7d73659bbf5a0150.tar.bz2 misskey-b62d9f3920d94f68a6e0339c7d73659bbf5a0150.zip | |
feat(frontend/nirax): リダイレクトを設定できるように (#13030)
* feat(frontend/nirax): リダイレクトを設定できるように
* revert demonstrative changes
* fix
* revert unrelated changes
* リダイレクトの際にパスが変わらない問題を修正
* リダイレクトが必要なrouteを設定
* fix lint
* router向けe2eテストの追加
* fix
---------
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
Co-authored-by: samunohito <46447427+samunohito@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/MkPageWindow.vue | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue index 28058c338b..ccd9df83ed 100644 --- a/packages/frontend/src/components/MkPageWindow.vue +++ b/packages/frontend/src/components/MkPageWindow.vue @@ -93,6 +93,13 @@ windowRouter.addListener('push', ctx => { history.value.push({ path: ctx.path, key: ctx.key }); }); +windowRouter.addListener('replace', ctx => { + history.value.pop(); + history.value.push({ path: ctx.path, key: ctx.key }); +}); + +windowRouter.init(); + provide('router', windowRouter); provideMetadataReceiver((info) => { pageMetadata.value = info; |