devmindslab/link-redirect-confirm
最新稳定版本:v1.0.4
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
统计信息
- 总下载量: 108
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 5
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-28