mirror of
https://github.com/flarum/core.git
synced 2025-07-26 19:20:21 +02:00
Combine route/query params in route construction
One params object is passed, and then route params are extracted into the route and the rest are appended as query params.
This commit is contained in:
@@ -21,7 +21,7 @@ export default class PostHeaderUser extends Component {
|
||||
return m('div.post-user', {config: this.onload.bind(this)}, [
|
||||
m('h3',
|
||||
user ? [
|
||||
m('a', {href: app.route('user', user), config: m.route}, [
|
||||
m('a', {href: app.route('user', {username: user.username()}), config: m.route}, [
|
||||
avatar(user),
|
||||
username(user)
|
||||
]),
|
||||
|
Reference in New Issue
Block a user