feat: rename to path

This commit is contained in:
tresabhi committed 2025-05-16 18:07:15 -05:00
1 parent fdecef5f9c
commit 84dd13c0ac
5 files changed
+7 -7

No files matched your search

@@ -3,14 +3,14 @@ import { literals } from '@blitzkit/i18n';
import { getStrings } from '../core/i18n/getStrings';
export interface Props {
tool: string;
path: string;
}
const { tool } = Astro.props;
const { path } = Astro.props;
const { locale } = Astro.params;
const strings = getStrings(locale);
const url = `/${locale === undefined ? '' : `${locale}/`}${tool}`;
const url = `/${locale === undefined ? '' : `${locale}/`}${path}`;
---
<meta http-equiv="refresh" content={`0; url=${url}`} />
@@ -4,4 +4,4 @@ import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
export { getStaticPaths } from '../../index.astro';
---
<LegacyRedirect tool="compare" />
<LegacyRedirect path="compare" />
@@ -22,4 +22,4 @@ export const getStaticPaths = (() => {
const { embed } = Astro.params;
---
<LegacyRedirect tool={`embed/${embed}`} />
<LegacyRedirect path={`embed/${embed}`} />
@@ -4,4 +4,4 @@ import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
export { getStaticPaths } from '../../index.astro';
---
<LegacyRedirect tool="embed" />
<LegacyRedirect path="embed" />
@@ -4,4 +4,4 @@ import LegacyRedirect from '../../../../components/LegacyRedirect.astro';
export { getStaticPaths } from '../../index.astro';
---
<LegacyRedirect tool="gallery" />
<LegacyRedirect path="gallery" />