Skip to content

How to define nested component at root url? #257

Closed Answered by PindaPixel
PindaPixel asked this question in Q&A
Discussion options

You must be logged in to vote

I found the answer:
The return value of all but the root layout should start with a leading slash if they are to be children of the root url.

Output should be:

in: src/pages/_layout.vue
out: .vue

in: src/pages/home/_page.vue
out: /home/index.vue

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by PindaPixel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant