#Routing

3 messages · Page 1 of 1 (latest)

torpid swift
#

Hello, currently this is my directory and I would like the index of the [lang] folder to be the same as the root folder. Is there any way to do this without duplicating the content or create a separate component that picks up the index of the root folder to use this component in both files?

an example of what I want to do would be that the path: / and /es/ go to the same page.

thin slateBOT
#
Still waiting for an answer?

It looks like no-one has responded to your question yet. People might not be available right now or don’t know how to answer your question. Want an answer while you wait? Try asking our experimental bot in #1095492539085230272.

summer sparrow
#

Hi @torpid swift !

You can always return a redirect that points to your root index inside your /pages/lang/index.astro