1
0
mirror of https://github.com/flarum/core.git synced 2025-05-08 08:25:29 +02:00

Notification: fix wrong external attr for Link

This commit is contained in:
Alexander Skvortsov 2020-10-16 11:53:45 -04:00
parent 1fc24635f6
commit d409484abf

View File

@ -24,7 +24,7 @@ export default class Notification extends Component {
<Link
className={'Notification Notification--' + notification.contentType() + ' ' + (!notification.isRead() ? 'unread' : '')}
href={href}
external={href.indexOf('://') === -1}
external={href.includes('://')}
onclick={this.markAsRead.bind(this)}
>
{!notification.isRead() &&