{"action":"created","issue":{"url":"https://api.github.com/repos/kalamuna/kalastatic/issues/234","labels_url":"https://api.github.com/repos/kalamuna/kalastatic/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/kalamuna/kalastatic/issues/234/comments","events_url":"https://api.github.com/repos/kalamuna/kalastatic/issues/234/events","html_url":"https://github.com/kalamuna/kalastatic/issues/234","id":113478381,"number":234,"title":"Provide nicer urls for Kalastatic within drupal","user":{"login":"soniktrooth","id":597617,"avatar_url":"https://avatars.githubusercontent.com/u/597617?v=3","gravatar_id":"","url":"https://api.github.com/users/soniktrooth","html_url":"https://github.com/soniktrooth","followers_url":"https://api.github.com/users/soniktrooth/followers","following_url":"https://api.github.com/users/soniktrooth/following{/other_user}","gists_url":"https://api.github.com/users/soniktrooth/gists{/gist_id}","starred_url":"https://api.github.com/users/soniktrooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soniktrooth/subscriptions","organizations_url":"https://api.github.com/users/soniktrooth/orgs","repos_url":"https://api.github.com/users/soniktrooth/repos","events_url":"https://api.github.com/users/soniktrooth/events{/privacy}","received_events_url":"https://api.github.com/users/soniktrooth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kalamuna/kalastatic/labels/feature","name":"feature","color":"207de5"},{"url":"https://api.github.com/repos/kalamuna/kalastatic/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-27T00:22:51Z","updated_at":"2015-11-14T00:32:33Z","closed_at":null,"body":"Current solution provides a menu callback at kalastatic/prototype but just does a drupal_goto() and redirects to index.html inside the build folder which gives us ugly urls. e.g. `http://kalatheme.local/sites/all/themes/kt_sub/kalastatic/build/examples/`\r\n\r\nI've toyed with the idea of implementing a ``hook_preprocess_html`` that puts the index.html contents into a variable and then provide a html.tpl that prints only that variable. This works for the front page but as soon as you navigate anywhere else then we're back to the ugly urls. \r\n\r\nThoughts on sort of .htaccess based approach? We could just make kalastatic/prototype redirect to `sites/all/themes/kt_sub/kalastatic/build` and hopefully the work we did to make all the urls relative within KS would mean it all holds together?\r\n\r\nWork to take place in\r\nhttps://github.com/kalamuna/kalastatic_dot_module"},"comment":{"url":"https://api.github.com/repos/kalamuna/kalastatic/issues/comments/156599363","html_url":"https://github.com/kalamuna/kalastatic/issues/234#issuecomment-156599363","issue_url":"https://api.github.com/repos/kalamuna/kalastatic/issues/234","id":156599363,"user":{"login":"soniktrooth","id":597617,"avatar_url":"https://avatars.githubusercontent.com/u/597617?v=3","gravatar_id":"","url":"https://api.github.com/users/soniktrooth","html_url":"https://github.com/soniktrooth","followers_url":"https://api.github.com/users/soniktrooth/followers","following_url":"https://api.github.com/users/soniktrooth/following{/other_user}","gists_url":"https://api.github.com/users/soniktrooth/gists{/gist_id}","starred_url":"https://api.github.com/users/soniktrooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soniktrooth/subscriptions","organizations_url":"https://api.github.com/users/soniktrooth/orgs","repos_url":"https://api.github.com/users/soniktrooth/repos","events_url":"https://api.github.com/users/soniktrooth/events{/privacy}","received_events_url":"https://api.github.com/users/soniktrooth/received_events","type":"User","site_admin":false},"created_at":"2015-11-14T00:32:33Z","updated_at":"2015-11-14T00:32:33Z","body":"My epiphany over on #243 about delivery callbacks may provide us with a leg up to making this happen."}}