diff --git a/res/index.js b/res/index.js index 1b1960e..edfa822 100644 --- a/res/index.js +++ b/res/index.js @@ -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;