{"action":"created","issue":{"url":"https://api.github.com/repos/01org/appframework/issues/838","labels_url":"https://api.github.com/repos/01org/appframework/issues/838/labels{/name}","comments_url":"https://api.github.com/repos/01org/appframework/issues/838/comments","events_url":"https://api.github.com/repos/01org/appframework/issues/838/events","html_url":"https://github.com/01org/appframework/issues/838","id":63967414,"number":838,"title":"\"#afuidemo/foo/bar/something\": being able to have \"/foo/bar/something\" is strictly necessary?","user":{"login":"landabaso","id":4365458,"avatar_url":"https://avatars.githubusercontent.com/u/4365458?v=3","gravatar_id":"","url":"https://api.github.com/users/landabaso","html_url":"https://github.com/landabaso","followers_url":"https://api.github.com/users/landabaso/followers","following_url":"https://api.github.com/users/landabaso/following{/other_user}","gists_url":"https://api.github.com/users/landabaso/gists{/gist_id}","starred_url":"https://api.github.com/users/landabaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landabaso/subscriptions","organizations_url":"https://api.github.com/users/landabaso/orgs","repos_url":"https://api.github.com/users/landabaso/repos","events_url":"https://api.github.com/users/landabaso/events{/privacy}","received_events_url":"https://api.github.com/users/landabaso/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-24T10:54:00Z","updated_at":"2015-03-24T11:58:37Z","closed_at":null,"body":"There's this peace of code at the beginning of loadDiv:\r\n```javascript\r\n        loadDiv: function(target, newView, back, transition,anchor) {\r\n            // load a div\r\n            var newDiv = target.replace(\"#\", \"\");\r\n\r\n            var slashIndex = newDiv.indexOf(\"/\");\r\n            var hashLink = \"\";\r\n            if (slashIndex !== -1) {\r\n                // Ignore everything after the slash for loading\r\n                hashLink = newDiv.substr(slashIndex);\r\n                newDiv = newDiv.substr(0, slashIndex);\r\n            }\r\n\r\n            newDiv = $.query(\"#\" + newDiv).get(0);\r\n```\r\nwhich I'd simply leave as:\r\n```javascript\r\n        loadDiv: function(target, newView, back, transition,anchor) {\r\n            // load a div\r\n            var newDiv = $.query(target).get(0);\r\n```\r\nI guess that removing everything after the slash may be useful for being able to query panels with some options. (Is that the reason for that?)\r\n\r\nThe thing is it conflicts with custom routers (not using hashes but pushHistory with long paths). For example in: myapp.com/listA/sublistA/item1 loadDiv wipes everything after listA.\r\n\r\nI can, of course, create my own version of loadDiv or patch it in my project (this is what I'm doing now) but I just wanted to ask the real reason behind that code since perhaps it may be a benefit for the project to simply get rid of it (or maybe not for some reasons I don't understand)."},"comment":{"url":"https://api.github.com/repos/01org/appframework/issues/comments/85467337","html_url":"https://github.com/01org/appframework/issues/838#issuecomment-85467337","issue_url":"https://api.github.com/repos/01org/appframework/issues/838","id":85467337,"user":{"login":"landabaso","id":4365458,"avatar_url":"https://avatars.githubusercontent.com/u/4365458?v=3","gravatar_id":"","url":"https://api.github.com/users/landabaso","html_url":"https://github.com/landabaso","followers_url":"https://api.github.com/users/landabaso/followers","following_url":"https://api.github.com/users/landabaso/following{/other_user}","gists_url":"https://api.github.com/users/landabaso/gists{/gist_id}","starred_url":"https://api.github.com/users/landabaso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landabaso/subscriptions","organizations_url":"https://api.github.com/users/landabaso/orgs","repos_url":"https://api.github.com/users/landabaso/repos","events_url":"https://api.github.com/users/landabaso/events{/privacy}","received_events_url":"https://api.github.com/users/landabaso/received_events","type":"User","site_admin":false},"created_at":"2015-03-24T11:58:37Z","updated_at":"2015-03-24T11:58:37Z","body":"I can submit a pull request but first I need to fully understand why everything after the first hash is removed in loadDiv. I'm not sure how to patch the code not breaking some functionality you devised which I don't understand."}}