devmindslab/link-redirect-confirm
Composer 安装命令:
composer require devmindslab/link-redirect-confirm
包简介
Require confirmation before opening external links posted in Flarum.
README 文档
README
This extension shows a confirmation modal before opening external links posted anywhere in the forum.
Features
- Confirmation modal for external links
- Whitelist support (domains without confirmation)
- Automatically excludes the forum's own domain
- Shows the destination URL in the modal
Installation
composer require devmindslab/link-redirect-confirm
Configuration
Set a whitelist in the Admin panel (comma-separated). Wildcards are supported via *.example.org.
By default, the forum's own domain is always allowed.
Whitelist behavior
Whitelisted domains skip the confirmation modal and open in the same tab. Non-whitelisted external links show the modal and open in a new tab after confirmation.
If you want whitelisted external links to also open in a new tab, you can optionally combine this extension with the Flarum extension walsgit/external-links-in-new-tab.
That extension forces all external links to open in a new tab and works well together with this confirmation extension.
You can install it via Composer using composer require walsgit/external-links-in-new-tab.
Translations
The extension ships with German and English translations located in resources/locale/de.yml and resources/locale/en.yml.
Additional languages can easily be added by copying en.yml and translating the strings.
Styling
You can fully customize the modal via LESS variables, e.g.:
--link-redirect-confirm-modal-max-width--link-redirect-confirm-modal-padding--link-redirect-confirm-modal-radius--link-redirect-confirm-modal-bg--link-redirect-confirm-header-bg--link-redirect-confirm-title-color--link-redirect-confirm-body-color--link-redirect-confirm-overlay-bg--link-redirect-confirm-buttons-gap
devmindslab/link-redirect-confirm 适用场景与选型建议
devmindslab/link-redirect-confirm 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 109 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 28 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 devmindslab/link-redirect-confirm 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 devmindslab/link-redirect-confirm 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 109
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 17
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-28