fixing mailer previews for apps with globbing route

Fixes #17895