Skip to content

Commit a5f005f

Browse files
committed
Remove tutorial routes from framer rewrites (#6592)
closes: CORE-802 Redirect `/learn/tutorials` to `/learn/guides` This PR removes `/learn/tutorials` and `/learn/tutorials/:tutorial_slug` from the framer-rewrites list and adds redirects from these paths to their corresponding `/learn/guides` equivalents.
1 parent fb70cab commit a5f005f

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

apps/dashboard/framer-rewrites.js

-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ module.exports = [
4949
"/templates/:template_slug",
5050
// -- learn --
5151
"/learn",
52-
"/learn/tutorials",
53-
"/learn/tutorials/:tutorial_slug",
5452
"/learn/guides",
5553
"/learn/guides/:guide_slug",
5654
"/learn/courses",

apps/dashboard/redirects.js

+13
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,19 @@ async function redirects() {
361361
"/team/:team_slug/:project_slug/connect/universal-bridge/:path*",
362362
permanent: false,
363363
},
364+
365+
// all /learn/tutorials (and sub-routes) -> /learn/guides
366+
{
367+
source: "/learn/tutorials/:path*",
368+
destination: "/learn/guides/:path*",
369+
permanent: false,
370+
},
371+
{
372+
source: "/learn/tutorials",
373+
destination: "/learn/guides",
374+
permanent: false,
375+
},
376+
364377
...legacyDashboardToTeamRedirects,
365378
];
366379
}

0 commit comments

Comments
 (0)