{"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Twig-View/issues/46","labels_url":"https://api.github.com/repos/slimphp/Twig-View/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Twig-View/issues/46/comments","events_url":"https://api.github.com/repos/slimphp/Twig-View/issues/46/events","html_url":"https://github.com/slimphp/Twig-View/pull/46","id":125857234,"number":46,"title":"Remove script name for base url()","user":{"login":"chanhong","id":1286631,"avatar_url":"https://avatars.githubusercontent.com/u/1286631?v=3","gravatar_id":"","url":"https://api.github.com/users/chanhong","html_url":"https://github.com/chanhong","followers_url":"https://api.github.com/users/chanhong/followers","following_url":"https://api.github.com/users/chanhong/following{/other_user}","gists_url":"https://api.github.com/users/chanhong/gists{/gist_id}","starred_url":"https://api.github.com/users/chanhong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chanhong/subscriptions","organizations_url":"https://api.github.com/users/chanhong/orgs","repos_url":"https://api.github.com/users/chanhong/repos","events_url":"https://api.github.com/users/chanhong/events{/privacy}","received_events_url":"https://api.github.com/users/chanhong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-11T00:51:11Z","updated_at":"2016-01-11T13:35:55Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/slimphp/Twig-View/pulls/46","html_url":"https://github.com/slimphp/Twig-View/pull/46","diff_url":"https://github.com/slimphp/Twig-View/pull/46.diff","patch_url":"https://github.com/slimphp/Twig-View/pull/46.patch"},"body":"I have spent many hours on this issue and tries various way and the dependencies.php does not fix base_url() for twig-View, it must be done in baseUrl of TwigExtension for it to work correctly in all cases that I test and the good thing is the URL will still retain the script name, just the css and js that get the correct url to show css and jv.\r\n\r\nPlease review the pull request to see if this can be used.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/slimphp/Twig-View/issues/comments/170550801","html_url":"https://github.com/slimphp/Twig-View/pull/46#issuecomment-170550801","issue_url":"https://api.github.com/repos/slimphp/Twig-View/issues/46","id":170550801,"user":{"login":"silentworks","id":79497,"avatar_url":"https://avatars.githubusercontent.com/u/79497?v=3","gravatar_id":"","url":"https://api.github.com/users/silentworks","html_url":"https://github.com/silentworks","followers_url":"https://api.github.com/users/silentworks/followers","following_url":"https://api.github.com/users/silentworks/following{/other_user}","gists_url":"https://api.github.com/users/silentworks/gists{/gist_id}","starred_url":"https://api.github.com/users/silentworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silentworks/subscriptions","organizations_url":"https://api.github.com/users/silentworks/orgs","repos_url":"https://api.github.com/users/silentworks/repos","events_url":"https://api.github.com/users/silentworks/events{/privacy}","received_events_url":"https://api.github.com/users/silentworks/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T13:35:55Z","updated_at":"2016-01-11T13:35:55Z","body":"Set your uri manually as a string when you initialise the TwigExtension and this won't be necessary. I am not keen on the idea of adding in regex to check for .php on a specific use case. "}}