mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:11:40 +08:00
Don't be so picky about the slug
This commit is contained in:
parent
bdf07aee50
commit
5c6eaefb1f
@ -114,12 +114,12 @@ export default class DiscussionPage extends Component {
|
||||
// stream to jump to the new 'near' param.
|
||||
var discussion = this.discussion();
|
||||
if (discussion) {
|
||||
var discussionRoute = app.route('discussion', { id: discussion.id(), slug: discussion.slug() });
|
||||
if (m.route().substr(0, discussionRoute.length) === discussionRoute) {
|
||||
if (m.route.param('id') == discussion.id()) {
|
||||
e.preventDefault();
|
||||
if (m.route.param('near') != this.currentNear) {
|
||||
this.streamContent.goToNumber(m.route.param('near'));
|
||||
}
|
||||
this.currentNear = null;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user