FIX: Don't name two routes the same. It breaks in Ember RC8.
This commit is contained in:
parent
3cec95a2c3
commit
425b59d381
|
@ -10,7 +10,7 @@ Discourse.Route.buildRoutes(function() {
|
|||
// Topic routes
|
||||
this.resource('topic', { path: '/t/:slug/:id' }, function() {
|
||||
this.route('fromParams', { path: '/' });
|
||||
this.route('fromParams', { path: '/:nearPost' });
|
||||
this.route('fromParamsNear', { path: '/:nearPost' });
|
||||
});
|
||||
|
||||
// Generate static page routes
|
||||
|
|
|
@ -58,4 +58,5 @@ Discourse.TopicFromParamsRoute = Discourse.Route.extend({
|
|||
|
||||
});
|
||||
|
||||
Discourse.TopicFromParamsNearRoute = Discourse.TopicFromParamsRoute;
|
||||
|
||||
|
|
Loading…
Reference in New Issue