i want the request mapped to the company Controller’s View action where i’ll take the seo-friendly company name - general-electric and query against my company table’s seo-friendly-url column for a match
what would the pattern be for this in the url mamanger?
that’s exactly what i tried but no luck. I get a system generated 404 saying it can’t find the requested action ‘company-name’. Meaning it’s trying to map the company name to an action.
Got it. The problem was with the regular expression \w+. It only matches on alpha numeric characters. When i changed my rule to this it started working: ‘companies/<seo_url_name:[a-zA-Z0-9-]+>’=>‘companies/view’,