Skip to content

特定情况下超链接焦点判断问题 #523

Description

@chanbeiyu

检查清单

  • 已经阅读过 官方文档 相关内容,并尝试进行搜索。
  • 尝试过在本地测试运行官方 demo 源码。
  • 尝试过在 Codespace 中测试运行官方 demo 源码。

问题描述

layout/_partial/widgets/components/link.ejs 文件中 const isActive = url_for(item.url) == url_for(page.path) 判断在如下特定情况下存在问题:
Hexo 配置文件 (_config.yml) 中 pretty_urls.trailing_index: true 。此时 page.path 的值为 xxx/index.html,如果 item.url 省略了 index.html 会导致判断错误,是否考虑做下兼容?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions