From 8b5dc61e6c6c457b8ccb3cb6e2a0d22d8145765a Mon Sep 17 00:00:00 2001 From: Caleb Date: Thu, 12 Oct 2017 19:51:28 -0600 Subject: [PATCH] Change "new entry" path to avoid slug conflicts. --- src/containers/App.js | 2 +- src/lib/urlHelper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/containers/App.js b/src/containers/App.js index 0c2080f5..f66668ee 100644 --- a/src/containers/App.js +++ b/src/containers/App.js @@ -197,7 +197,7 @@ class App extends React.Component { - ()} /> + ()} /> diff --git a/src/lib/urlHelper.js b/src/lib/urlHelper.js index d320a972..6aed98dd 100644 --- a/src/lib/urlHelper.js +++ b/src/lib/urlHelper.js @@ -10,7 +10,7 @@ export function getCollectionUrl(collectionName, direct) { } export function getNewEntryUrl(collectionName, direct) { - return getUrl(`/collections/${ collectionName }/entries/new`, direct); + return getUrl(`/collections/${ collectionName }/new`, direct); } /* See https://www.w3.org/International/articles/idn-and-iri/#path.