{"action":"created","issue":{"url":"https://api.github.com/repos/middleman/middleman/issues/850","labels_url":"https://api.github.com/repos/middleman/middleman/issues/850/labels{/name}","comments_url":"https://api.github.com/repos/middleman/middleman/issues/850/comments","events_url":"https://api.github.com/repos/middleman/middleman/issues/850/events","html_url":"https://github.com/middleman/middleman/issues/850","id":12877939,"number":850,"title":"Navigation using i18n and link_to","user":{"login":"mariosant","id":1409645,"avatar_url":"https://avatars.githubusercontent.com/u/1409645?v=3","gravatar_id":"","url":"https://api.github.com/users/mariosant","html_url":"https://github.com/mariosant","followers_url":"https://api.github.com/users/mariosant/followers","following_url":"https://api.github.com/users/mariosant/following{/other_user}","gists_url":"https://api.github.com/users/mariosant/gists{/gist_id}","starred_url":"https://api.github.com/users/mariosant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariosant/subscriptions","organizations_url":"https://api.github.com/users/mariosant/orgs","repos_url":"https://api.github.com/users/mariosant/repos","events_url":"https://api.github.com/users/mariosant/events{/privacy}","received_events_url":"https://api.github.com/users/mariosant/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2013-04-06T13:45:52Z","updated_at":"2015-05-21T21:08:32Z","closed_at":"2013-04-06T17:35:05Z","body":"I have successfully activated i18n module and now I am trying to build a navigation menu like the following example (in HAML):\r\n\r\n    %ul\r\n       %li\r\n         = link_to I18n.t(:home), sitemap.find_request_by_path(\"/index.haml\")\r\n\r\nThe problem of that, is that the generated link points always to /index.html.\r\nHow could I make it point to the localised target? For example /en/index.html or /de/index.html.\r\n\r\nKeep in mind that I have also a mounted at root locale. /index.html is always french for example."},"comment":{"url":"https://api.github.com/repos/middleman/middleman/issues/comments/104420624","html_url":"https://github.com/middleman/middleman/issues/850#issuecomment-104420624","issue_url":"https://api.github.com/repos/middleman/middleman/issues/850","id":104420624,"user":{"login":"AbelToy","id":147130,"avatar_url":"https://avatars.githubusercontent.com/u/147130?v=3","gravatar_id":"","url":"https://api.github.com/users/AbelToy","html_url":"https://github.com/AbelToy","followers_url":"https://api.github.com/users/AbelToy/followers","following_url":"https://api.github.com/users/AbelToy/following{/other_user}","gists_url":"https://api.github.com/users/AbelToy/gists{/gist_id}","starred_url":"https://api.github.com/users/AbelToy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AbelToy/subscriptions","organizations_url":"https://api.github.com/users/AbelToy/orgs","repos_url":"https://api.github.com/users/AbelToy/repos","events_url":"https://api.github.com/users/AbelToy/events{/privacy}","received_events_url":"https://api.github.com/users/AbelToy/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T21:08:32Z","updated_at":"2015-05-21T21:08:32Z","body":"Welp, I found another issue. Any path pointing to `index.html` won't be localized, even if `locale` is explicit.\r\n\r\nSo, `link_to 'About', '/about.html'` will be correctly localized depending on the locale of the current page or the explicit one if set, while `link_to 'Home', '/index.html'` won't work. The same with something like `link_to 'Projects', '/projects/index.html'`, that one wouldn't be localized either."}}