Add logic to have ReservedPaths maintain the default values #14108
LennardF1989
started this conversation in
Features and ideas
Replies: 2 comments
-
IMO it would be more clean to have an Not sure how big an issue it really is. Do you often have different |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's occasional use, but doing it in code is not handy because it's usually to expose static files without Umbraco mixing in and those get shuffled around. So I'll just end up adding my own appsettings config key then :P |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now it's possible to set ReservedPaths from appsettings.json, but this effectively overrides to default value. Most of the time you do not want to override but instead add to it.
This can be solved by introducing another config-key for "AdditionalReservedPaths" that get appended to the default value. Another solution is making a special string like %default%, that can be included in the ReservedPaths like so:
Right now, you have to always make sure the default value is up-to-date if you override it.
Beta Was this translation helpful? Give feedback.
All reactions