Skip to content
Merged
Show file tree
Hide file tree
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 dashboard/src/components/platform/AddNewPlatform.vue
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
<v-card-text class="py-4">
<p>{{ tm('dialog.securityWarning.aiocqhttpTokenMissing') }}</p>
<span><a
href="https://docs.astrbot.app/deploy/platform/aiocqhttp/napcat.html#%E9%99%84%E5%BD%95-%E5%A2%9E%E5%BC%BA%E8%BF%9E%E6%8E%A5%E5%AE%89%E5%85%A8%E6%80%A7"
href="https://docs.astrbot.app/platform/aiocqhttp.html"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The previous link included an anchor (#附录-增强连接安全性) that directed users to a specific section on connection security. The new link points to the top of the page, which makes it harder for users to find this critical information. To improve usability, please consider adding an anchor to the new URL if a corresponding section exists on the new documentation page.

target="_blank">{{ tm('dialog.securityWarning.learnMore') }}</a></span>
Comment on lines 261 to 263
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 suggestion (security): Consider adding rel="noopener noreferrer" for security when using target="_blank".

This prevents the new tab from accessing window.opener and potentially manipulating or redirecting the original page.

Suggested change
<span><a
href="https://docs.astrbot.app/deploy/platform/aiocqhttp/napcat.html#%E9%99%84%E5%BD%95-%E5%A2%9E%E5%BC%BA%E8%BF%9E%E6%8E%A5%E5%AE%89%E5%85%A8%E6%80%A7"
href="https://docs.astrbot.app/platform/aiocqhttp.html"
target="_blank">{{ tm('dialog.securityWarning.learnMore') }}</a></span>
<span><a
href="https://docs.astrbot.app/platform/aiocqhttp.html"
target="_blank"
rel="noopener noreferrer">{{ tm('dialog.securityWarning.learnMore') }}</a></span>

</v-card-text>
<v-card-actions class="px-4 pb-4">
Expand Down
2 changes: 1 addition & 1 deletion dashboard/src/utils/platformUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function getTutorialLink(platformType) {
const tutorialMap = {
"qq_official_webhook": "https://docs.astrbot.app/platform/qqofficial/webhook.html",
"qq_official": "https://docs.astrbot.app/platform/qqofficial/websockets.html",
"aiocqhttp": "https://docs.astrbot.app/platform/aiocqhttp/napcat.html",
"aiocqhttp": "https://docs.astrbot.app/platform/aiocqhttp.html",
"wecom": "https://docs.astrbot.app/platform/wecom.html",
"weixin_oc": "https://docs.astrbot.app/platform/weixin_oc.html",
"wecom_ai_bot": "https://docs.astrbot.app/platform/wecom_ai_bot.html",
Expand Down
Loading