home page can use dynamic template?
Unanswered
Somali posted this in #help-forum
SomaliOP
I'm trying to create a home page inside
[slug]/page.js
in my API my home page is available at url with /home, but I want it to be at url /
I also want to remove page.js from the root app, because otherwise I'm just duplicating my code on metadata.
What should I use to make /home inside [slug] just / ?
[slug]/page.js
in my API my home page is available at url with /home, but I want it to be at url /
I also want to remove page.js from the root app, because otherwise I'm just duplicating my code on metadata.
What should I use to make /home inside [slug] just / ?
1 Reply
SomaliOP
i also get 'favicon.ico' in params slug if i delete page.js from root and try to get access to '/' route. how it works?