Skip to content

Collocated home redirect trailing slash fix

Warren Gifford requested to merge brett/collocated-home-redirect into main

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

  1. Ensure /home/ or /home or /home/_hero redirects to /

Merge request reports

Loading