1
0
mirror of https://github.com/flarum/core.git synced 2025-07-24 10:11:43 +02:00

Use slug for user mentions page

This commit is contained in:
SychO9
2021-05-14 23:13:45 +01:00
parent 4d8f105d07
commit 8ef8dee532

View File

@@ -58,7 +58,7 @@ app.initializers.add('flarum-mentions', function() {
const user = this.user;
items.add('mentions',
LinkButton.component({
href: app.route('user.mentions', {username: user.username()}),
href: app.route('user.mentions', {username: user.slug()}),
name: 'mentions',
icon: 'fas fa-at'
}, app.translator.trans('flarum-mentions.forum.user.mentions_link')),