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
[ ] Added appropriate PhpDoc for modifications
[ ] Added unit test to ensure fix works as intended
Summary
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 thedocumentation/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