{"action":"created","issue":{"url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/399","labels_url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/399/labels{/name}","comments_url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/399/comments","events_url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/399/events","html_url":"https://github.com/PiranhaCMS/Piranha/issues/399","id":69620505,"number":399,"title":"Routing issue with MapMvcAttributeRoutes & Prefixless Permalinks","user":{"login":"TimoWillemsen","id":411025,"avatar_url":"https://avatars.githubusercontent.com/u/411025?v=3","gravatar_id":"","url":"https://api.github.com/users/TimoWillemsen","html_url":"https://github.com/TimoWillemsen","followers_url":"https://api.github.com/users/TimoWillemsen/followers","following_url":"https://api.github.com/users/TimoWillemsen/following{/other_user}","gists_url":"https://api.github.com/users/TimoWillemsen/gists{/gist_id}","starred_url":"https://api.github.com/users/TimoWillemsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimoWillemsen/subscriptions","organizations_url":"https://api.github.com/users/TimoWillemsen/orgs","repos_url":"https://api.github.com/users/TimoWillemsen/repos","events_url":"https://api.github.com/users/TimoWillemsen/events{/privacy}","received_events_url":"https://api.github.com/users/TimoWillemsen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/PiranhaCMS/Piranha/labels/question","name":"question","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-04-20T16:03:57Z","updated_at":"2015-04-29T14:38:18Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using MvcAttribute Routes combined with prefixless permalinks. For example I've got the following pages in Piranha:\r\n\r\n/information/\r\n/information/page1\r\n/information/page2\r\n\r\nNow I've created controllers, that add some more dynamic content the site, for example:\r\n\r\n    public class TestController : Controller{\r\n     [Route(\"information/more\")]\r\n     public ActionResult More(){\r\n     //content here\r\n     }\r\n    }\r\n\r\nHowever, I am getting a 404 whenever I try to access /information/more, I am able to access the PiranhaCMS pages. Do you have an idea how I can fix this?\r\n\r\nNB. It works when I change the name of the route for example:\r\n\r\n    public class TestController : Controller{\r\n     [Route(\"information1/more\")]\r\n     public ActionResult More(){\r\n     //content here\r\n     }\r\n    }\r\n\r\nThen I can access /information1/more.\r\n\r\nThis is my routeconfig:\r\n\r\n    routes.MapMvcAttributeRoutes();\r\n    routes.MapRoute(\r\n               name: \"Default\",\r\n               url: \"{controller}/{action}/{id}/{description}\",\r\n               defaults: new { controller = \"Home\", action = \"Index\", id = UrlParameter.Optional, description = UrlParameter.Optional },\r\n               namespaces: new[] { \"Project.Controllers\" }\r\n           ).DataTokens[\"UseNamespaceFallback\"] = false;"},"comment":{"url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/comments/97451269","html_url":"https://github.com/PiranhaCMS/Piranha/issues/399#issuecomment-97451269","issue_url":"https://api.github.com/repos/PiranhaCMS/Piranha/issues/399","id":97451269,"user":{"login":"tidyui","id":781266,"avatar_url":"https://avatars.githubusercontent.com/u/781266?v=3","gravatar_id":"","url":"https://api.github.com/users/tidyui","html_url":"https://github.com/tidyui","followers_url":"https://api.github.com/users/tidyui/followers","following_url":"https://api.github.com/users/tidyui/following{/other_user}","gists_url":"https://api.github.com/users/tidyui/gists{/gist_id}","starred_url":"https://api.github.com/users/tidyui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tidyui/subscriptions","organizations_url":"https://api.github.com/users/tidyui/orgs","repos_url":"https://api.github.com/users/tidyui/repos","events_url":"https://api.github.com/users/tidyui/events{/privacy}","received_events_url":"https://api.github.com/users/tidyui/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T14:38:18Z","updated_at":"2015-04-29T14:38:18Z","body":"Yes! But when I think of it you shouldn't event need the `Subset` call since you're using the entire requested URL. So just the following should do:\r\n\r\n    perm = Permalink.GetByName(Config.SiteTreeNamespaceId, args.Implode(\"/\"));\r\n\r\nRegards"}}