FIX: apply defaults constraints to routes format (take 2) (PR #7920)

Reapply FIX: apply defaults constraints to routes format (#7890) · discourse/discourse@7d01c5d · GitHub

GitHub

You’ve signed the CLA, OsamaSayegh. Thank you! This pull request is ready for review.

Looks good!