We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9085525 commit 1e5481eCopy full SHA for 1e5481e
lib/actions/ui.js
@@ -40,14 +40,13 @@ export function matchContentToUrl (location) {
40
// This is a bit of a hack to make up for the fact that react-router does
41
// not always provide the match params as expected.
42
// https://github.com/ReactTraining/react-router/issues/5870#issuecomment-394194338
43
- let root = location.pathname.split('/')[1]
+ const root = location.pathname.split('/')[1]
44
const match = matchPath(location.pathname, {
45
path: `/${root}/:id`,
46
exact: true,
47
strict: false
48
})
49
const id = match && match.params && match.params.id
50
- console.log(location, id)
51
switch (root) {
52
case 'route':
53
if (id) {
0 commit comments