{"action":"created","issue":{"url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/46","labels_url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/46/comments","events_url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/46/events","html_url":"https://github.com/Dresel/RouteLocalization/issues/46","id":73304722,"number":46,"title":"Home page route (root empty route) issues","user":{"login":"brgrz","id":193816,"avatar_url":"https://avatars.githubusercontent.com/u/193816?v=3","gravatar_id":"","url":"https://api.github.com/users/brgrz","html_url":"https://github.com/brgrz","followers_url":"https://api.github.com/users/brgrz/followers","following_url":"https://api.github.com/users/brgrz/following{/other_user}","gists_url":"https://api.github.com/users/brgrz/gists{/gist_id}","starred_url":"https://api.github.com/users/brgrz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brgrz/subscriptions","organizations_url":"https://api.github.com/users/brgrz/orgs","repos_url":"https://api.github.com/users/brgrz/repos","events_url":"https://api.github.com/users/brgrz/events{/privacy}","received_events_url":"https://api.github.com/users/brgrz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-05T12:38:05Z","updated_at":"2015-05-08T07:13:53Z","closed_at":null,"body":"I'm having constant issues with the root route in my applications. My web apps use both variants of route translation registration (neutral and default) - not both in one app but different across apps.\r\n\r\nThe issue with default in combination with 'addcultureprefix' setting is that it modifies my Home route - this would be the one that listens at http://domain.com/. RL modifies it to http://domain.com/en.\r\n\r\nIf I use neutral this doesn't happen but then culture prefixes are gone for all the routes (which I don't want).\r\n\r\nWhat is the best way to tell RL to leave this one route alone or to remove it and bring back the original root route as specified in my controller with attribute routing?\r\n\r\nI tried doing this\r\n\r\n\tpublic static void RemoveDefaultRouteTranslation<T>(this RouteTranslator<T> localization)\r\n\t{\r\n\t\tvar localizationCollectionRoute = localization.GetRoutes().Single();\r\n\t\tlocalizationCollectionRoute.RemoveTranslation(localization.Configuration.DefaultCulture);\r\n\t\t// localization.AddTranslation(\"~/\");\r\n\t\t}\r\n\r\nor with the last line uncommented and it didn't work in any case.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/comments/100129570","html_url":"https://github.com/Dresel/RouteLocalization/issues/46#issuecomment-100129570","issue_url":"https://api.github.com/repos/Dresel/RouteLocalization/issues/46","id":100129570,"user":{"login":"Dresel","id":1769090,"avatar_url":"https://avatars.githubusercontent.com/u/1769090?v=3","gravatar_id":"","url":"https://api.github.com/users/Dresel","html_url":"https://github.com/Dresel","followers_url":"https://api.github.com/users/Dresel/followers","following_url":"https://api.github.com/users/Dresel/following{/other_user}","gists_url":"https://api.github.com/users/Dresel/gists{/gist_id}","starred_url":"https://api.github.com/users/Dresel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dresel/subscriptions","organizations_url":"https://api.github.com/users/Dresel/orgs","repos_url":"https://api.github.com/users/Dresel/repos","events_url":"https://api.github.com/users/Dresel/events{/privacy}","received_events_url":"https://api.github.com/users/Dresel/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T07:13:53Z","updated_at":"2015-05-08T07:13:53Z","body":"> ... then the translated root route is removed and the neutral one gets added but since I am manually removing and adding routes it messes up the order (which I set with Order parameter on attribute routes) and as such certain things break.\r\n\r\nAfaik this shouldn't break the order. Can you show me your complete route configuration?"}}