put items into links - because of the SEO

This commit is contained in:
Senad Uka
2016-01-26 05:01:18 +01:00
parent 418eb028ae
commit 0e2e5b8fb9
2 changed files with 18 additions and 3 deletions

View File

@@ -53,8 +53,13 @@ var NavigationStore = _.extend({}, EventEmitter.prototype, {
} else {
return false;
}
},
getUrlForItem: function(item) {
return '/artikal/' + item.get('id') +'/' + Globals.Slugify(item.get('name'))
}
});
@@ -84,4 +89,4 @@ NavigationStore.dispatchToken = AppDispatcher.register(function(payload) {
});
module.exports = NavigationStore;
module.exports = NavigationStore;