I'm trying to set up nested routes in React Router v7 Framework Mode and want /explore to redirect to /explore/skill-path. Here's my current setup:
`import { type RouteConfig, index, route } from "@react-router/dev/routes";
export default [
index("routes/home.tsx"),
route("/explore", "routes/explore/explore.tsx", [
route("scenario", "routes/explore/scenario.tsx"),
route("skill-path", "routes/explore/skill-path.tsx"),
route("project", "routes/explore/project.tsx"),
route("masterclass", "routes/explore/masterclass.tsx"),
]),
] satisfies RouteConfig;`
What I Need:
- Visiting /explore should redirect to /explore/skill-path (URL changes).
- explore.tsx should render as the parent layout with skill-path.tsx in an <Outlet />.
- Other routes (/explore/scenario, etc.) should work as is.