1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-06-11 00:44:07 +02:00

fix(frontend): routerがmatchAllに入った際に一度 location.href による遷移を試みる挙動に関する修正 (#17281)

* fix(frontend): follow-up of #13509

* fix: fix use of inappropriate method

* Update CHANGELOG.md [ci skip]
This commit is contained in:
かっこかり
2026-04-07 20:35:06 +09:00
committed by GitHub
parent b9923d0a23
commit d4a5048aae
6 changed files with 99 additions and 28 deletions

View File

@@ -31,6 +31,14 @@ mainRouter.addListener('replace', ctx => {
window.history.replaceState({ }, '', ctx.fullPath);
});
mainRouter.addListener('forceReplace', ctx => {
window.location.replace(ctx.fullPath);
});
mainRouter.addListener('forcePush', ctx => {
window.location.href = ctx.fullPath;
});
mainRouter.addListener('change', ctx => {
if (_DEV_) console.log('mainRouter: change', ctx.fullPath);
analytics.page({