Title: Appearance theme switching title prompt bug · Issue #4004 · vuejs/vitepress · GitHub
Open Graph Title: Appearance theme switching title prompt bug · Issue #4004 · vuejs/vitepress
X Title: Appearance theme switching title prompt bug · Issue #4004 · vuejs/vitepress
Description: Describe the bug Theme switching refresh page title display bug Reproduction VitePress official website has this issue. After switching to dark mode, the title prompt is "Switch to light theme". After refreshing the page, the title promp...
Open Graph Description: Describe the bug Theme switching refresh page title display bug Reproduction VitePress official website has this issue. After switching to dark mode, the title prompt is "Switch to light theme". Af...
X Description: Describe the bug Theme switching refresh page title display bug Reproduction VitePress official website has this issue. After switching to dark mode, the title prompt is "Switch to light theme...
Opengraph URL: https://github.com/vuejs/vitepress/issues/4004
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Appearance theme switching title prompt bug","articleBody":"### Describe the bug\n\nTheme switching refresh page title display bug\n\n### Reproduction\n\nVitePress official website has this issue.\r\nAfter switching to dark mode, the title prompt is \"Switch to light theme\". After refreshing the page, the title prompt will become \"Switch to dark theme\", which is incorrect. It should be \"Switch to light theme\".\n\n### Expected behavior\n\nMaintain the correct display\r\n\r\n\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 14.5\r\n CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz\r\n Memory: 528.32 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.6.0 - ~/.nvm/versions/node/v20.6.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v20.6.0/bin/yarn\r\n npm: 9.8.1 - ~/.nvm/versions/node/v20.6.0/bin/npm\r\n pnpm: 8.12.0 - ~/.nvm/versions/node/v20.6.0/bin/pnpm\r\n Watchman: 4.9.0 - /usr/local/bin/watchman\r\n Browsers:\r\n Safari: 17.5\n```\n\n\n### Additional context\n\n\r\n\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.","author":{"url":"https://github.com/zxlfly","@type":"Person","name":"zxlfly"},"datePublished":"2024-06-30T04:11:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/4004/vitepress/issues/4004"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:47e4e4f9-e528-df22-892f-012e9a045aca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7F0:C4DD7:1C135E0:25A7806:69957EB9 |
| html-safe-nonce | 62b7b26030d3578e7fd3ff3ebe0e87bfbb297ceda2b9057e1ed0daf1fff0225d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0YwOkM0REQ3OjFDMTM1RTA6MjVBNzgwNjo2OTk1N0VCOSIsInZpc2l0b3JfaWQiOiI0MDgzNzI3MTU2NzQ4MDU4Mjk3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e4bfe098b363a8eee6bee18b9983cf8341303304399f60d4de8121841ece1cd2 |
| hovercard-subject-tag | issue:2382073946 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vuejs/vitepress/4004/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b8debb0640f56a1345c99b1020d0e7b1754a38182a579ef36c462a130dbcc7a/vuejs/vitepress/issues/4004 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b8debb0640f56a1345c99b1020d0e7b1754a38182a579ef36c462a130dbcc7a/vuejs/vitepress/issues/4004 |
| og:image:alt | Describe the bug Theme switching refresh page title display bug Reproduction VitePress official website has this issue. After switching to dark mode, the title prompt is "Switch to light theme". Af... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zxlfly |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4bd759bc5f83244e2a0de29b937365905c0fefd238b6f077c24a49830375b4df |
| turbo-cache-control | no-preview |
| go-import | github.com/vuejs/vitepress git https://github.com/vuejs/vitepress.git |
| octolytics-dimension-user_id | 6128107 |
| octolytics-dimension-user_login | vuejs |
| octolytics-dimension-repository_id | 260338399 |
| octolytics-dimension-repository_nwo | vuejs/vitepress |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 260338399 |
| octolytics-dimension-repository_network_root_nwo | vuejs/vitepress |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cac7d4a5a6053f6655d0c3e8bfe5fd7a55c216fd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width