{"action":"created","issue":{"url":"https://api.github.com/repos/turquoiseowl/i18n/issues/271","repository_url":"https://api.github.com/repos/turquoiseowl/i18n","labels_url":"https://api.github.com/repos/turquoiseowl/i18n/issues/271/labels{/name}","comments_url":"https://api.github.com/repos/turquoiseowl/i18n/issues/271/comments","events_url":"https://api.github.com/repos/turquoiseowl/i18n/issues/271/events","html_url":"https://github.com/turquoiseowl/i18n/issues/271","id":156453632,"number":271,"title":"api/ redirect","user":{"login":"rares-p","id":19186078,"avatar_url":"https://avatars.githubusercontent.com/u/19186078?v=3","gravatar_id":"","url":"https://api.github.com/users/rares-p","html_url":"https://github.com/rares-p","followers_url":"https://api.github.com/users/rares-p/followers","following_url":"https://api.github.com/users/rares-p/following{/other_user}","gists_url":"https://api.github.com/users/rares-p/gists{/gist_id}","starred_url":"https://api.github.com/users/rares-p/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rares-p/subscriptions","organizations_url":"https://api.github.com/users/rares-p/orgs","repos_url":"https://api.github.com/users/rares-p/repos","events_url":"https://api.github.com/users/rares-p/events{/privacy}","received_events_url":"https://api.github.com/users/rares-p/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-24T08:54:44Z","updated_at":"2016-05-24T09:49:09Z","closed_at":null,"body":"Hi,\r\nI have a WebAPI in my MVC project configured like this in the WebApiConfig.cs\r\n```\r\n        public static void Register(HttpConfiguration config)\r\n        {\r\n            // Web API configuration and services\r\n\r\n            // Web API routes\r\n            config.MapHttpAttributeRoutes();\r\n            config.Routes.MapHttpRoute(\r\n                name: \"DefaultApi\",\r\n                routeTemplate: \"api/{controller}/{action}/{id}\",\r\n                defaults: new { id = RouteParameter.Optional }\r\n            );\r\n        }\r\n```\r\n\r\nIf I turn off i18n the api works like a charm.\r\nWhen i18n is on (references loaded) whenever I go to  /api/{controller}/{action}/{id} I get redirected to /{controller}/{action}/{id}\r\n\r\nHow can I override this redirect? Or even better how can I use i18n with the WebApi?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/turquoiseowl/i18n/issues/comments/221220084","html_url":"https://github.com/turquoiseowl/i18n/issues/271#issuecomment-221220084","issue_url":"https://api.github.com/repos/turquoiseowl/i18n/issues/271","id":221220084,"user":{"login":"turquoiseowl","id":3240189,"avatar_url":"https://avatars.githubusercontent.com/u/3240189?v=3","gravatar_id":"","url":"https://api.github.com/users/turquoiseowl","html_url":"https://github.com/turquoiseowl","followers_url":"https://api.github.com/users/turquoiseowl/followers","following_url":"https://api.github.com/users/turquoiseowl/following{/other_user}","gists_url":"https://api.github.com/users/turquoiseowl/gists{/gist_id}","starred_url":"https://api.github.com/users/turquoiseowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/turquoiseowl/subscriptions","organizations_url":"https://api.github.com/users/turquoiseowl/orgs","repos_url":"https://api.github.com/users/turquoiseowl/repos","events_url":"https://api.github.com/users/turquoiseowl/events{/privacy}","received_events_url":"https://api.github.com/users/turquoiseowl/received_events","type":"User","site_admin":false},"created_at":"2016-05-24T09:49:09Z","updated_at":"2016-05-24T09:49:09Z","body":"The setting ```i18n.UrlLocalizer.QuickUrlExclusionFilter``` may be of help.\r\n\r\nhttps://github.com/turquoiseowl/i18n#exclude-urls-from-being-localized"}}
{"actor":{"display_login":"turquoiseowl"}}