Skip to content

Commit

Permalink
Fixed link to index
Browse files Browse the repository at this point in the history
I'm not sure how Ember works, but it seems to take the last defined
path for a resource when doing {{#link-to 'index'}}. This makes it
link to "/" instead of "/index.html".
  • Loading branch information
Luit van Drongelen committed Jan 14, 2015
1 parent 016652c commit 99c3dd7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gophertown.org/static/js/router.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
GopherTown.Router.map(function() {
this.resource('index', { path: '/' });
this.resource('index', { path: '/index.html' });
});
GopherTown.Router.map(function() {
this.resource('index', { path: '/index.html' });
this.resource('index', { path: '/' });
});

GopherTown.Router.map(function() {
Expand Down Expand Up @@ -52,7 +52,7 @@ GopherTown.ApplicationRoute = Ember.Route.extend({
GopherTown.RandomRoute = Ember.Route.extend({
model: function(params) {
return jQuery.getJSON('/gophers/random').then(function(res) {
console.log(res)
console.log(res);
return { results: res };
});
}
Expand Down

0 comments on commit 99c3dd7

Please sign in to comment.