stakx-io / stakx

An opinionated, powerful, and simple static website generator built in PHP
https://stakx.io/
MIT License
14 stars 3 forks source link

Generated routes with slashes as parameters don't work in serve #98

Closed allejo closed 5 years ago

allejo commented 5 years ago

Given a Dynamic PageView with the following Front Matter:

e.g. bzflag.org:_pages/documentation/show.html.twig

---
collection: user_documentation
permalink: /documentation/%docpath/
---

And a collection item with the following Front Matter:

e.g. bzflag.org:_documentation/developer/pages/compiling-on-windows.md

---
title: Compiling on Windows
docpath: compiling/windows
---

The build command works as correctly forming a /documentation/compiling/windows/ permalink when writing files. However, the current router we're using for the dev server does not support having parameters with slashes in them. This results in a 404 when trying to access this page while using serve.