Collocated home redirect trailing slash fix
Created by: bretthayes
Minor fix to the /home
redirect which should point to /
when there is and isn't a trailing slash. This forces the redirect no matter what to the root /
.
Note, this implementation may change in the future with more added support for collocated/nested layouts in the next version of Next.js with their layouts RFC.
Test
- Ensure
/home/
or/home
or/home/_hero
redirects to/