fixing mailer previews for apps with globbing route
Merge pull request #17896 from GBH/globbing_route_mailer_preview

fixing mailer previews for apps with globbing route