diff --git a/index.html b/index.html index 00ec0a4..7f5ca78 100644 --- a/index.html +++ b/index.html @@ -1108,13 +1108,9 @@ } } else { if (targetPage.includes('/')) { - if (targetPage.includes('?')) { - const splitAddress = targetPage.split('?') - searchParams = splitAddress.pop(); - [, pageId, subPageId1] = splitAddress.pop().split('/') - } else { - [, pageId, subPageId1] = targetPage.split('/') - } + let path; + [path, searchParams] = targetPage.split('?'); + [, pageId, subPageId1] = path.split('/') } else { pageId = targetPage } @@ -1185,7 +1181,7 @@ ` : ''}