mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-24 21:13:54 -04:00
FIX: Don't name two routes the same. It breaks in Ember RC8.
This commit is contained in:
parent
3cec95a2c3
commit
425b59d381
2 changed files with 2 additions and 1 deletions
app/assets/javascripts/discourse/routes
|
@ -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…
Add table
Add a link
Reference in a new issue