diff --git a/package.json b/package.json index 16bb3db..6233c74 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,5 @@ { "scripts": { - "sync": "rsync -av --delete docs/ ../docs.kira.network/docs/", "test": "vitest", "build": "npm run test -- --run && tsc && cp ./src/css/*.css dist/ && echo Build successful", "build-only": "tsc && cp ./src/css/*.css dist/", diff --git a/src/plugins/internalLinks.ts b/src/plugins/internalLinks.ts index c520d4f..2d0de0f 100644 --- a/src/plugins/internalLinks.ts +++ b/src/plugins/internalLinks.ts @@ -95,14 +95,7 @@ function convertLinkHref( page: NotionPage, url: string ): string { - let convertedLink: string; - // If the link is from the current tab, use the direct link path to the page - if (tab == context.currentTab) { - convertedLink = context.layoutStrategy.getLinkPathForPage(page); - } else { - // If the link is from a different tab, prepend '/' and the tab name to the link path - convertedLink = "/" + tab + context.layoutStrategy.getLinkPathForPage(page); - } + let convertedLink = "/" + tab + context.layoutStrategy.getLinkPathForPage(page); // Extract the fragment identifier from the URL, if it exists const { fragmentId } = parseLinkId(url);