Video: Redirects

Remix For Everyone

24 videos

Released: 2021-12-31

User avatar

Instructor

Scott Tolinski
AutoPlay

Redirects

In this video Scott covers redirects - what happens when a users lands on a page that doesn't exist?

console.log(params.show?.length);

import { padNumber } from "~/utils/pad";

let showNumber = params.show if (showNumber.length < 3 ) showNumber = padNumber(showNumber) redirect(/syntax/${showNumber}, 301);