misskey-dev / misskey

🌎 A completely free and open interplanetary microblogging platform 🚀
https://misskey-hub.net/
GNU Affero General Public License v3.0
9.99k stars 1.36k forks source link

ページのタイトルが切り替わらないことがある #13069

Closed taiyme closed 8 months ago

taiyme commented 9 months ago

💡 Summary

次のページに遷移する場合、ページのタイトル (document.title) が切り替わらないことがある。 ただし、再度そのページに戻ると正常に切り替わる。

🥰 Expected Behavior

ページに遷移すると document.title が書き換わる

🤬 Actual Behavior

ページに遷移しても document.title が書き換わらない

📝 Steps to Reproduce

  1. デフォルトまたはクラシックUIで適当なページを開く
  2. 上記の対象ページに遷移する

💻 Frontend Environment

* Model and OS of the device(s): MacBook Air (13-inch, 2020), macOS Ventura 13.5
* Browser: Google Chrome 120.0
* Server URL: https://misskey.io/
* Misskey: 2023.12.2-io.2h

🛰 Backend Environment (for server admin)

* Installation Method or Hosting Service:
* Misskey:
* Node:
* PostgreSQL:
* Redis:
* OS and Architecture:

Do you want to address this bug yourself?

taiyme commented 9 months ago

問題が発生しているページで共通しているものとして、下記のようにdefinePageMetadata関数の引数がnullになる可能性のあるコードがあります。

definePageMetadata(computed(() => note.value ? {
  // ...
} : null));
1STEP621 commented 9 months ago

Related to #12393