Skip to content

Serve Linked Assets at the right time in serve#130

Open
allejo wants to merge 1 commit into0.2from
fix/support-linked-assets-in-serve
Open

Serve Linked Assets at the right time in serve#130
allejo wants to merge 1 commit into0.2from
fix/support-linked-assets-in-serve

Conversation

@allejo
Copy link
Copy Markdown
Member

@allejo allejo commented Mar 1, 2023

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

  • Added appropriate PhpDoc for modifications
  • Added unit test to ensure fix works as intended

@allejo allejo added Bug: Fix A tag for PRs to signify it's fixing a bug Core: Dev Server Relating to the internal development server used for the 'serve' command labels Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug: Fix A tag for PRs to signify it's fixing a bug Core: Dev Server Relating to the internal development server used for the 'serve' command

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant