Skip to content

adapter-static add option to output subpages in subfolders #173

@atjn

Description

@atjn

I am using the default marko-run project with the adapter-static adapter..

When I create a route structure like this:

src/routes
├── foo
│   └── +page.marko
└── +page.marko

... and I run marko-run build, I get this output:

dist/public
├── foo.html
└── index.html

If I then copy these files to my file server and try to connect to my website, I cannot connect to the subpage. Connecting to example.com/foo or example.com/foo/ both return 404 errors. I must explicitly connect to example.com/foo.html to see the page.

I would prefer the output structure to look like this:

dist/public
├── foo
│   └── index.html
└── index.html

That would allow the server to correctly locate foo/index.html when connecting to either of example.com/foo or example.com/foo/. As far as I can tell, there is no option to enable this behavior. Is that something you could add?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions