id page update

This commit is contained in:
makearmy 2025-09-27 18:14:41 -04:00
parent a3c4565034
commit b0856c986f
9 changed files with 8 additions and 48 deletions

Binary file not shown.

View file

@ -1,7 +1,2 @@
// app/lasers/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/laser-sources?id=${encodeURIComponent(id)}`);
}
export { default } from "./lasers";

View file

@ -1,7 +1,2 @@
// app/materials/materials-coatings/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/materials?t=materials-coatings&id=${encodeURIComponent(id)}`);
}
export { default } from "./materials-coatings";

View file

@ -1,7 +1,2 @@
// app/materials/materials/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/materials?t=materials&id=${encodeURIComponent(id)}`);
}
export { default } from "./materials";

View file

@ -1,7 +1,2 @@
// app/projects/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/projects?id=${encodeURIComponent(id)}`);
}
export { default } from "./projects";

View file

@ -1,7 +1,2 @@
// app/settings/co2-galvo/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/laser-settings?t=co2-galvo&id=${encodeURIComponent(id)}`);
}
export { default } from "./co2-galvo";

View file

@ -1,7 +1,2 @@
// app/settings/co2-gantry/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/laser-settings?t=co2-gantry&id=${encodeURIComponent(id)}`);
}
export { default } from "./co2-gantry";

View file

@ -1,7 +1,2 @@
// app/settings/fiber/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/laser-settings?t=fiber&id=${encodeURIComponent(id)}`);
}
export { default } from "./fiber";

View file

@ -1,7 +1,2 @@
// app/settings/uv/[id]/page.tsx
import { redirect } from "next/navigation";
export default async function Page({ params }: { params: Promise<{ id: string }> }) {
const { id } = await params;
redirect(`/portal/laser-settings?t=uv&id=${encodeURIComponent(id)}`);
}
export { default } from "./uv";