#How use the jokes page as homepage

1 messages · Page 1 of 1 (latest)

tawny widget
#

I want use the /jokes page as homepage, how do that? The documentation say : "index files can't have children"

nocturne adder
#

Create an index with a loader and redirect from there to /jokes

tawny widget
#

root.tsx has <Outlet />, I want / targeting /route/jokes.tsx and not /route/index.tsx

tawny widget
nocturne adder
tawny widget
#

Ok thank you, I will try

tawny widget
#

my / url become /jokes, I want to keep my root url for my homepage

tawny widget
#

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.

tawny widget
#

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.