Skip to content

Commit

Permalink
chore(settings): fix page link (#1007)
Browse files Browse the repository at this point in the history
  • Loading branch information
yusualhashash authored Dec 16, 2024
2 parents d2d6cca + 9c13705 commit b0f74c3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions apps/web/src/app/[lang]/(core)/settings/tenant/page.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
import { RedirectType, permanentRedirect } from "next/navigation";
import { getBaseLink } from "src/utils";

export default function Page({
params,
}: {
params: { lang: string; type: string };
}) {
export default function Page({ params }: { params: { lang: string } }) {
permanentRedirect(
getBaseLink(`app/${params.type}/settings/tenant/home`, true, params.lang),
getBaseLink(`/settings/tenant/home`, true, params.lang),
RedirectType.push,
);
}

0 comments on commit b0f74c3

Please sign in to comment.