[▲ Vercel Community](/) · [Categories](/categories) · [Latest](/latest) · [Top](/top) · [Live](/live)

[Help](/c/help/9)

# Optional catch-all segments not working for home page

31 views · 0 likes · 2 posts


Kartikjetani Altusgroupc (@kartikjetani-altusgr) · 2024-08-23

I'm using this folder structure and not using *generateStaticParams*.
![image|355x500](upload://p92wXkGtvuE4JAxcZcQ2kqfeVNi.png)
Issue is, 
when I deploy it on Vercel, it shows blank white page on home page( / route). but it shows home page when I build it locally and run it.

Although, I found a work around for that.
![image|343x500](upload://cnWmiPhhouYUb3FgKoB0XfOzoZC.png)
Created copy of page under src>app and changed [[...slug]] to [...slug]. and home page is working now but I don't want to maintain 2 copy of page files.

I'm using contentful to create pages based on slug captured in ...slug parameter.


Pauline P. Narvas (@pawlean) · 2024-08-27

Hi, @kartikjetani-altusgr!

Could you provide us a [minimal reproducible example](https://vercel.com/guides/creating-a-minimal-reproducible-example) for us to dig deeper? Thank you!