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

Serve Linked Assets at the right time in serve #130

Open allejo opened 1 year ago

allejo commented 1 year ago

Summary

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed issues fixes #129

Description

Linked assets end up with a route that matches their parent collection item and therefore, the web server attempts to treat them as a dynamic pageview since that's where the collection item belongs.

For example, documentation/server-administration/player-slots.jpg will match the documentation/server-administration/{docpath} route from the dynamic pageview.

This PR changes the logic so that linked assets are handled first before the dynamic pageview controller has time to kick in.

Check List