{"action":"created","issue":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/1676","repository_url":"https://api.github.com/repos/Studio-42/elFinder","labels_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1676/labels{/name}","comments_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1676/comments","events_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1676/events","html_url":"https://github.com/Studio-42/elFinder/issues/1676","id":179450618,"number":1676,"title":"Reload elfinder with a new target","user":{"login":"CraigDunn","id":22467536,"avatar_url":"https://avatars.githubusercontent.com/u/22467536?v=3","gravatar_id":"","url":"https://api.github.com/users/CraigDunn","html_url":"https://github.com/CraigDunn","followers_url":"https://api.github.com/users/CraigDunn/followers","following_url":"https://api.github.com/users/CraigDunn/following{/other_user}","gists_url":"https://api.github.com/users/CraigDunn/gists{/gist_id}","starred_url":"https://api.github.com/users/CraigDunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CraigDunn/subscriptions","organizations_url":"https://api.github.com/users/CraigDunn/orgs","repos_url":"https://api.github.com/users/CraigDunn/repos","events_url":"https://api.github.com/users/CraigDunn/events{/privacy}","received_events_url":"https://api.github.com/users/CraigDunn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Studio-42/elFinder/labels/howto","name":"howto","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-09-27T10:07:37Z","updated_at":"2016-09-28T07:31:23Z","closed_at":null,"body":"Hello there,\r\nWhat would be the correct way to set a new folder target and then cause the UI to reload, opening at the specified folder?\r\nA javascript or jQuery code example would be wonderful!\r\n\r\nI am doing it this way:\r\nvar startPath = \"cd_input\";\r\nvar volumeId = 'v1_';\r\nvar path = \"\\\\\\\" + startPath; // without root path\r\nvar hash = volumeId + btoa(path).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=/g, '.').replace(/\\.+$/, '') + \"0\";\r\n// added the trailing zero because btoa(path) does not generate it\r\nvar url = '@Url.Action(\"Index\", \"Files\")' + '#elf_' + hash;\r\n// url is: http://localhost:51350/files#elf_v1_XGNkX2lucHV00\r\nlocation.href = url;\r\nreturn false;\r\n\r\n\r\nbut neither location.href nor location.replace cause the page to load: I have to click in the address bar and do Enter ??\r\n\r\nIsn't there a way to reload the UI at the new target folder without reloading the page?\r\n\r\nThanks for your time,\r\nCraig.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Studio-42/elFinder/issues/comments/250093025","html_url":"https://github.com/Studio-42/elFinder/issues/1676#issuecomment-250093025","issue_url":"https://api.github.com/repos/Studio-42/elFinder/issues/1676","id":250093025,"user":{"login":"nao-pon","id":1412630,"avatar_url":"https://avatars.githubusercontent.com/u/1412630?v=3","gravatar_id":"","url":"https://api.github.com/users/nao-pon","html_url":"https://github.com/nao-pon","followers_url":"https://api.github.com/users/nao-pon/followers","following_url":"https://api.github.com/users/nao-pon/following{/other_user}","gists_url":"https://api.github.com/users/nao-pon/gists{/gist_id}","starred_url":"https://api.github.com/users/nao-pon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nao-pon/subscriptions","organizations_url":"https://api.github.com/users/nao-pon/orgs","repos_url":"https://api.github.com/users/nao-pon/repos","events_url":"https://api.github.com/users/nao-pon/events{/privacy}","received_events_url":"https://api.github.com/users/nao-pon/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T07:31:23Z","updated_at":"2016-09-28T07:31:23Z","body":"Umm... I'm not sure. Could you show your connector configurations?"}}
{"actor":{"display_login":"nao-pon"}}