Reference Source
import DiscussionPageResolver from 'flarum/resolvers/DiscussionPageResolver'
public class | source

DiscussionPageResolver

Extends:

src/common/resolvers/DefaultResolver.js~DefaultResolver → DiscussionPageResolver

A custom route resolver for DiscussionPage that generates the same key to all posts on the same discussion. It triggers a scroll when going from one post to another in the same discussion.

Method Summary

Public Methods
public

makeKey(): *

public

onmatch(args: undefined, requestedPath: undefined, route: undefined): *

public

render(vnode: undefined): *

Public Methods

public makeKey(): * source

Return:

*

public onmatch(args: undefined, requestedPath: undefined, route: undefined): * source

Params:

NameTypeAttributeDescription
args undefined
requestedPath undefined
route undefined

Return:

*

public render(vnode: undefined): * source

Params:

NameTypeAttributeDescription
vnode undefined

Return:

*