FIX: Don't name two routes the same. It breaks in Ember RC8.

This commit is contained in:
Robin Ward 2013-08-29 12:26:05 -04:00
parent 3cec95a2c3
commit 425b59d381
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -58,4 +58,5 @@ Discourse.TopicFromParamsRoute = Discourse.Route.extend({
});
Discourse.TopicFromParamsNearRoute = Discourse.TopicFromParamsRoute;