#How use the jokes page as homepage
1 messages · Page 1 of 1 (latest)
Create an index with a loader and redirect from there to /jokes
root.tsx has <Outlet />, I want / targeting /route/jokes.tsx and not /route/index.tsx
It can't create performance or seo problem?
It shouldn’t
Ok thank you, I will try
It redirect the url inside the browser
my / url become /jokes, I want to keep my root url for my homepage
I think I need to move my main menu inside the root file and move the content of the jokes file inside the index file. And after that, maybe update links inside the index (new => articles/new)
I try it tomorrow.
Routing is at the center of everything Remix does. Dive deeper into the APIs and conventions.
I have find a solution
I use all my /articles/* routes normally.
But I redirect /articles/ on /
The article layout still works for the child routes, but if I try to access to the /articles url directly, I redirect the user to /.
This works and without reloading any part of the user interface that hasn't changed.