Skip to content

Commit

Permalink
Revert "Fix for home routes when deployed"
Browse files Browse the repository at this point in the history
This reverts commit 86a3291.
  • Loading branch information
raulg committed Apr 3, 2019
1 parent 86a3291 commit 8ad5470
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/linkResolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ exports.linkResolver = function linkResolver(doc) {
return '/';
}
if (doc.type === 'products') {
return '/products/';
return '/products';
}
if (doc.type === 'product') {
return '/products/' + doc.uid;
}
if (doc.type === 'blog_home') {
return '/blog/';
return '/blog';
}
if (doc.type === 'blog_post') {
return '/blog/' + doc.uid;
Expand Down

0 comments on commit 8ad5470

Please sign in to comment.