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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user