{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10204","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10204/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10204/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10204/events","html_url":"https://github.com/yiisoft/yii2/issues/10204","id":118159675,"number":10204,"title":"modules and main application layout issues","user":{"login":"PommeVerte","id":1415875,"avatar_url":"https://avatars.githubusercontent.com/u/1415875?v=3","gravatar_id":"","url":"https://api.github.com/users/PommeVerte","html_url":"https://github.com/PommeVerte","followers_url":"https://api.github.com/users/PommeVerte/followers","following_url":"https://api.github.com/users/PommeVerte/following{/other_user}","gists_url":"https://api.github.com/users/PommeVerte/gists{/gist_id}","starred_url":"https://api.github.com/users/PommeVerte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PommeVerte/subscriptions","organizations_url":"https://api.github.com/users/PommeVerte/orgs","repos_url":"https://api.github.com/users/PommeVerte/repos","events_url":"https://api.github.com/users/PommeVerte/events{/privacy}","received_events_url":"https://api.github.com/users/PommeVerte/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-11-21T01:24:31Z","updated_at":"2015-11-27T14:52:45Z","closed_at":"2015-11-21T15:43:43Z","body":"Hello,\r\n\r\nIf your module renders a view using an `@app` layout view file containing a reference to `render()` all hell breaks loose. All generated URLs and sub renders get prefixed by the module. (and either fail because the view doesn't exist, or generates broken links)\r\n\r\nIt's possible to avoid this behavior by using `render('//_something')` rather that `render('/_something')`, But this is only a crutch as it will only work in an `app-> module` relationship. If you do the same in a `module->module` scenario you're screwed. Same goes with URLs. \r\n\r\nMaybe I'm missing something obvious?"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/160154213","html_url":"https://github.com/yiisoft/yii2/issues/10204#issuecomment-160154213","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10204","id":160154213,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2015-11-27T14:52:44Z","updated_at":"2015-11-27T14:52:44Z","body":"> this however breaks acceptance testing as you would need to load http://site.com/index-test.php/site/index\r\n\r\nI do not see a relation here... for site/index as well as /site/index the testing url will be the same."}}