From cb452398f9e15248d5974d95c59f51729f42adfb Mon Sep 17 00:00:00 2001 From: hippoz Date: Sun, 25 Oct 2020 18:24:50 +0200 Subject: [PATCH] try to fix the arg not being right --- res/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;