Skip to content

Commit

Permalink
conform trailing slash on redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Sep 11, 2024
1 parent d9674da commit 1083393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ui/docs-bundle/src/utils/getDocsPageProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { getCustomerAnalytics } from "./analytics";
import { getAuthorizationUrl } from "./auth";
import { convertStaticToServerSidePropsResult } from "./convertStaticToServerSidePropsResult";
import { getSeoDisabled } from "./disabledSeo";
import { isTrailingSlashEnabled } from "./trailingSlash";
import { conformTrailingSlash, isTrailingSlashEnabled } from "./trailingSlash";

type GetStaticDocsPagePropsResult = GetStaticPropsResult<ComponentProps<typeof DocsPage>>;
type GetServerSideDocsPagePropsResult = GetServerSidePropsResult<ComponentProps<typeof DocsPage>>;
Expand Down Expand Up @@ -188,7 +188,7 @@ async function convertDocsToDocsPageProps({
if (redirect != null) {
return {
redirect: {
destination: redirect.destination,
destination: conformTrailingSlash(redirect.destination),
permanent: redirect.permanent ?? false,
},
};
Expand Down

0 comments on commit 1083393

Please sign in to comment.