You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
memos/web/src/router/MemoDetailRedirect.tsx

9 lines
214 B
TypeScript

import { Navigate, useParams } from "react-router-dom";
const MemoDetailRedirect = () => {
const { uid } = useParams();
return <Navigate to={`/memos/${uid}`} replace />;
};
export default MemoDetailRedirect;