{"action":"created","issue":{"url":"https://api.github.com/repos/vimwiki/vimwiki/issues/105","labels_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/105/comments","events_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/105/events","html_url":"https://github.com/vimwiki/vimwiki/issues/105","id":53957305,"number":105,"title":"Wikilinks don't work in pages located in subfolders","user":{"login":"t7ko","id":8833179,"avatar_url":"https://avatars.githubusercontent.com/u/8833179?v=3","gravatar_id":"","url":"https://api.github.com/users/t7ko","html_url":"https://github.com/t7ko","followers_url":"https://api.github.com/users/t7ko/followers","following_url":"https://api.github.com/users/t7ko/following{/other_user}","gists_url":"https://api.github.com/users/t7ko/gists{/gist_id}","starred_url":"https://api.github.com/users/t7ko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/t7ko/subscriptions","organizations_url":"https://api.github.com/users/t7ko/orgs","repos_url":"https://api.github.com/users/t7ko/repos","events_url":"https://api.github.com/users/t7ko/events{/privacy}","received_events_url":"https://api.github.com/users/t7ko/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vimwiki/vimwiki/labels/idea","name":"idea","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2015-01-10T12:51:14Z","updated_at":"2015-03-14T09:26:17Z","closed_at":null,"body":"Wiki allows creating pages in subfolders.  It's really easy, try hitting enter on something like `[[a/b]]`, and it will create you a folder `a` and a page `b` in that folder.  But now, try adding a link to existing wiki page in that `a/b`.  e.g. `[[index]]`.  And suddenly it turns out it will try to look not on the top level, but inside `a/` subfolder.  If I now want to reference any page, I have to prepend `../` in all wiki links: `[[../index]]`.\r\n\r\nNow, I think this is not right.  Wikilink must work the same way, no matter where it is located.  Suppose I want to copy/move some text from this file to a page on top level.  What now, go manually thru the text copied and fix all wikilinks, removing `../` from them?..  It's ok for small piece of text, but suppose I want to move entire page?  Or all pages in a subfolder?\r\n\r\nOn the other hand, if I try link completion in a page in a subfolder, it turns out to be aware of this behavior -- all links have `../` prefix.  So maybe it was intended to work this way.  In which case it would be nice to know why."},"comment":{"url":"https://api.github.com/repos/vimwiki/vimwiki/issues/comments/80208368","html_url":"https://github.com/vimwiki/vimwiki/issues/105#issuecomment-80208368","issue_url":"https://api.github.com/repos/vimwiki/vimwiki/issues/105","id":80208368,"user":{"login":"protist","id":646668,"avatar_url":"https://avatars.githubusercontent.com/u/646668?v=3","gravatar_id":"","url":"https://api.github.com/users/protist","html_url":"https://github.com/protist","followers_url":"https://api.github.com/users/protist/followers","following_url":"https://api.github.com/users/protist/following{/other_user}","gists_url":"https://api.github.com/users/protist/gists{/gist_id}","starred_url":"https://api.github.com/users/protist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/protist/subscriptions","organizations_url":"https://api.github.com/users/protist/orgs","repos_url":"https://api.github.com/users/protist/repos","events_url":"https://api.github.com/users/protist/events{/privacy}","received_events_url":"https://api.github.com/users/protist/received_events","type":"User","site_admin":false},"created_at":"2015-03-14T09:26:17Z","updated_at":"2015-03-14T09:26:17Z","body":"Great! It seems to work well. Thanks for the quick fix. One other thing that you probably haven't got around to fixing yet is the automatic highlighting of broken links (`vimwiki-option-maxhi`). At the moment, existing links are incorrectly shown as broken."}}