{"action":"created","issue":{"url":"https://api.github.com/repos/getkirby/kirby/issues/244","labels_url":"https://api.github.com/repos/getkirby/kirby/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/getkirby/kirby/issues/244/comments","events_url":"https://api.github.com/repos/getkirby/kirby/issues/244/events","html_url":"https://github.com/getkirby/kirby/issues/244","id":72236708,"number":244,"title":"Relative links and multi language","user":{"login":"tweh","id":3011538,"avatar_url":"https://avatars.githubusercontent.com/u/3011538?v=3","gravatar_id":"","url":"https://api.github.com/users/tweh","html_url":"https://github.com/tweh","followers_url":"https://api.github.com/users/tweh/followers","following_url":"https://api.github.com/users/tweh/following{/other_user}","gists_url":"https://api.github.com/users/tweh/gists{/gist_id}","starred_url":"https://api.github.com/users/tweh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweh/subscriptions","organizations_url":"https://api.github.com/users/tweh/orgs","repos_url":"https://api.github.com/users/tweh/repos","events_url":"https://api.github.com/users/tweh/events{/privacy}","received_events_url":"https://api.github.com/users/tweh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/getkirby/kirby/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"distantnative","id":3788865,"avatar_url":"https://avatars.githubusercontent.com/u/3788865?v=3","gravatar_id":"","url":"https://api.github.com/users/distantnative","html_url":"https://github.com/distantnative","followers_url":"https://api.github.com/users/distantnative/followers","following_url":"https://api.github.com/users/distantnative/following{/other_user}","gists_url":"https://api.github.com/users/distantnative/gists{/gist_id}","starred_url":"https://api.github.com/users/distantnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantnative/subscriptions","organizations_url":"https://api.github.com/users/distantnative/orgs","repos_url":"https://api.github.com/users/distantnative/repos","events_url":"https://api.github.com/users/distantnative/events{/privacy}","received_events_url":"https://api.github.com/users/distantnative/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/getkirby/kirby/milestones/2","html_url":"https://github.com/getkirby/kirby/milestones/2.1","labels_url":"https://api.github.com/repos/getkirby/kirby/milestones/2/labels","id":758811,"number":2,"title":"2.1","description":"","creator":{"login":"bastianallgeier","id":24532,"avatar_url":"https://avatars.githubusercontent.com/u/24532?v=3","gravatar_id":"","url":"https://api.github.com/users/bastianallgeier","html_url":"https://github.com/bastianallgeier","followers_url":"https://api.github.com/users/bastianallgeier/followers","following_url":"https://api.github.com/users/bastianallgeier/following{/other_user}","gists_url":"https://api.github.com/users/bastianallgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/bastianallgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastianallgeier/subscriptions","organizations_url":"https://api.github.com/users/bastianallgeier/orgs","repos_url":"https://api.github.com/users/bastianallgeier/repos","events_url":"https://api.github.com/users/bastianallgeier/events{/privacy}","received_events_url":"https://api.github.com/users/bastianallgeier/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":8,"state":"closed","created_at":"2014-08-19T15:00:05Z","updated_at":"2015-05-19T12:14:39Z","due_on":null,"closed_at":"2015-05-19T12:14:39Z"},"comments":8,"created_at":"2015-04-30T18:10:23Z","updated_at":"2015-07-29T20:39:36Z","closed_at":"2015-05-06T19:09:13Z","body":"This question came [form the forum](http://forum.getkirby.com/t/relative-links-and-multi-language/519) and we’re not sure if this is really a bug, but since the behaviouve change form v1 to v2 it seems not unlikely at least. So thats the problem:\r\n\r\nI try to move my multi language homepage from kirby1 to kirby2. Almost everything works fine. The selected language remains while using the menu for navigating.\r\nUnfortunately, the kirbytext - relative links do not work anymore as supposed. Here the url() is build always without $language->code(), so that I always get redirected to the right content but the default language.\r\n\r\nImagine the following structure:\r\n\r\n    content/home/\r\n        home.de.txt\r\n        home.fr.txt\r\n        home.it.txt\r\n        home.en.txt\r\n    content/contactform/\r\n        contactform.de.txt\r\n        contactform.fr.txt\r\n        contactform.it.txt\r\n        contactform.en.txt\r\n\r\nI placed a relative link to the contact form on all four home's, like this:\r\n\r\n     (link: contactform/contactform)\r\n\r\nWith __Kirby v1__:\r\ncalling this link from `home.de`, it got translated to: `server/de/contactform/contactform`\r\ncalling this link from `home.en`, it got translated to: `server/contactform/contactform` (english is default)\r\n\r\nWith __Kirby v2__:\r\ncalling this link from `home.de`, it gets translated to: `server/contactform/contactform`\r\ncalling this link from `home.fr`, it gets translated to: `server/contactform/contactform`\r\ncalling this link from `home.en`, it gets translated to: server/contactform/contactform`\r\n\r\n_(written by jsc and slightly changed by me)_"},"comment":{"url":"https://api.github.com/repos/getkirby/kirby/issues/comments/126088723","html_url":"https://github.com/getkirby/kirby/issues/244#issuecomment-126088723","issue_url":"https://api.github.com/repos/getkirby/kirby/issues/244","id":126088723,"user":{"login":"distantnative","id":3788865,"avatar_url":"https://avatars.githubusercontent.com/u/3788865?v=3","gravatar_id":"","url":"https://api.github.com/users/distantnative","html_url":"https://github.com/distantnative","followers_url":"https://api.github.com/users/distantnative/followers","following_url":"https://api.github.com/users/distantnative/following{/other_user}","gists_url":"https://api.github.com/users/distantnative/gists{/gist_id}","starred_url":"https://api.github.com/users/distantnative/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantnative/subscriptions","organizations_url":"https://api.github.com/users/distantnative/orgs","repos_url":"https://api.github.com/users/distantnative/repos","events_url":"https://api.github.com/users/distantnative/events{/privacy}","received_events_url":"https://api.github.com/users/distantnative/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T20:39:36Z","updated_at":"2015-07-29T20:39:36Z","body":"Hmm, then I might just quote @bastianallgeier (the developer of Kirby) commenting on this issue/bug:\r\n\r\n> I just fixed this on the develop branch.\r\n\r\nErgo, this isn't fixed on any master branch, but on the develop branch of the kirby repo."}}