Skip to content

直接从链接进入post,或在post页面刷新后,“文章目录”内容消失且无法进入“关于我”页面 #718

Description

@CoolBoost

Describe the bug

从博客首页进入post,文章内容和目录正常渲染

Image

但在post页面手动刷新,或直接从URL进入到post页面,“文章目录”栏目内容消失。此时单击左侧的站长头像不会进入到“关于我”页面

Image

并且看来这种现象并非我所独有

Image

Reproduction

访问https://lolipoli.top,随便选一篇文章点进去后单击刷新按钮或直接访问https://lolipoli.top/posts/MachineLearning

System Info

System:
    OS: Windows 11 10.0.26200
    CPU: (16) x64 AMD Ryzen 7 5800H with Radeon Graphics
    Memory: 1.20 GB / 15.36 GB
  Binaries:
    Node: 24.5.0 - D:\nodejs\node.EXE
    npm: 11.5.1 - D:\nodejs\npm.CMD
    pnpm: 10.28.1 - D:\nodejs\pnpm.CMD
  Browsers:
    Chrome: 150.0.7871.187
    Edge: Chromium (150.0.4078.105)

  Nginx配置:
    location /{
      root /xxx;
      index index.html index.htm;
      try_files $uri $uri.html $uri/ =404;
      error_page 404 /index.html;
    }

Used Package Manager

pnpm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions