Static route ignored when path is matching document #23
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi,
I think that static routes should be taken into account even if there exists document matching current path.
Then will be possible to switch existing static document to module action and provide a posibility to manage editables on the page.
I know that we can use action view helper or provide snippet. Also I know it will make a minor influence on performance. But I think that's much elegant and elastic solution.
Example:
I'm creating blog plugin for pimcore (https://github.com/rafalgalka/pimcore-plugin-blog).
There will be:
Plugin installer will create static route for "/blog/" path. When you create document with same path blog action will not be executed.