Skip to content

修复搜索页面链接无法在新标签页打开的问题#194

Merged
anghunk merged 1 commit intoanghunk:mainfrom
SuLea-IT:fix/search-page-links
May 26, 2025
Merged

修复搜索页面链接无法在新标签页打开的问题#194
anghunk merged 1 commit intoanghunk:mainfrom
SuLea-IT:fix/search-page-links

Conversation

@SuLea-IT
Copy link
Copy Markdown
Contributor

问题描述
当启用"新标签页打开话题"功能时,搜索页面中的帖子链接无法正常在新标签页打开。

详见问题报告: #193

解决方案

  1. 扩展链接选择器,增加搜索页面DOM结构的支持:

    • 添加了 .search-results a.search-link:not([data-processed])
    • 添加了 .search-result-topic a:not([data-processed])
  2. 同时更新MutationObserver中的DOM变化检测逻辑,确保动态加载的搜索结果也能正确应用新标签页打开功能:

    • 添加了对 search-resultssearch-result-topic 类名的监听

@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2025

Deploy Preview for linuxdo-scripts canceled.

Name Link
🔨 Latest commit ba6db66
🔍 Latest deploy log https://app.netlify.com/projects/linuxdo-scripts/deploys/6831c9959cc04200088c394e

@anghunk anghunk merged commit 2cd6a5e into anghunk:main May 26, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants