Skip to content

fix: mdn search result can't be opened #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MDN/MDN.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MDNActions {
title: data.title,
//正则替换的原因是excerpt的返回结果里带了HTML标签,影响阅读.
subtitle: data.excerpt.replace(HTMLTagReg, ''),
arg: data.url,//此处将url置为arg是为了后面引用URL打开网页
arg: this.URL + data.slug,//此处将url置为arg是为了后面引用URL打开网页
})
});
optimizedResponse = this.optimizeSearchResults(ProcessedResponse);
Expand Down