diff --git a/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx b/packages/website/src/pages/[...locale]/tanks/_index.tsx similarity index 55% rename from packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx rename to packages/website/src/pages/[...locale]/tanks/_index.tsx index 6b777368b..00813f68c 100644 --- a/packages/website/src/pages/[...locale]/tools/tankopedia/_index.tsx +++ b/packages/website/src/pages/[...locale]/tanks/_index.tsx @@ -1,12 +1,12 @@ -import { PageWrapper } from '../../../../components/PageWrapper'; -import { TankSearch } from '../../../../components/TankSearch'; +import { PageWrapper } from '../../../components/PageWrapper'; +import { TankSearch } from '../../../components/TankSearch'; import { LocaleProvider, type LocaleAcceptorProps, -} from '../../../../hooks/useLocale'; -import { App } from '../../../../stores/app'; -import { TankopediaPersistent } from '../../../../stores/tankopediaPersistent'; -import type { MaybeSkeletonComponentProps } from '../../../../types/maybeSkeletonComponentProps'; +} from '../../../hooks/useLocale'; +import { App } from '../../../stores/app'; +import { TankopediaPersistent } from '../../../stores/tankopediaPersistent'; +import type { MaybeSkeletonComponentProps } from '../../../types/maybeSkeletonComponentProps'; export function Page({ locale, diff --git a/packages/website/src/pages/[...locale]/tanks/index.astro b/packages/website/src/pages/[...locale]/tanks/index.astro new file mode 100644 index 000000000..38947cdcb --- /dev/null +++ b/packages/website/src/pages/[...locale]/tanks/index.astro @@ -0,0 +1,15 @@ +--- +import { tankopediaTool } from '../../../constants/tools'; +import ToolLayout from '../../../layouts/ToolLayout.astro'; +import { Page } from './_index'; + +export { getStaticPaths } from '../index.astro'; + +const { locale } = Astro.params; +--- + + + + + + diff --git a/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro b/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro index 184fa85ea..9c50a9722 100644 --- a/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro +++ b/packages/website/src/pages/[...locale]/tools/tankopedia/index.astro @@ -1,15 +1,7 @@ --- -import { tankopediaTool } from '../../../../constants/tools'; -import ToolLayout from '../../../../layouts/ToolLayout.astro'; -import { Page } from './_index'; +import LegacyRedirect from '../../../../components/LegacyRedirect.astro'; export { getStaticPaths } from '../../index.astro'; - -const { locale } = Astro.params; --- - - - - - +