try to fix the arg not being right

This commit is contained in:
hippoz 2020-10-25 18:24:50 +02:00
parent 628371ed73
commit cb452398f9

View file

@ -116,7 +116,7 @@ const updateFromCurrentPathname = () => {
for (const [route, action] of Object.entries(dynamicRoutesActions)) {
if (pathname.startsWith(route)) {
const arg = stripTrailingSlash(pathname).split('/')[1];
const arg = stripTrailingSlash(pathname).split('/')[2];
console.log(arg);
action(arg);
break;