fix(trait): don't remove yaml route parameter

Closes #6392
3 files changed