diff --git a/autoload/vimwiki/base.vim b/autoload/vimwiki/base.vim index 52fbe82..8b47656 100644 --- a/autoload/vimwiki/base.vim +++ b/autoload/vimwiki/base.vim @@ -213,7 +213,6 @@ function! vimwiki#base#resolve_link(link_text, ...) abort let root_dir = fnamemodify(source_file, ':p:h') . '/' endif - " Extract the other items depending on the scheme if link_infos.scheme =~# '\mwiki\d\+' @@ -263,8 +262,10 @@ function! vimwiki#base#resolve_link(link_text, ...) abort \ vimwiki#vars#get_wikilocal('ext', link_infos.index) endif else + " append extension iff one not already present or it's not the targeted + " wiki extension - https://github.com/vimwiki/vimwiki/issues/950 let ext = fnamemodify(link_text, ':e') - if ext ==? '' " append ext iff one not already present + if ext ==? '' || ext !=? vimwiki#vars#get_wikilocal('ext', link_infos.index) let link_infos.filename .= vimwiki#vars#get_wikilocal('ext', link_infos.index) endif endif diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 7369593..a07d4dc 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -4055,6 +4055,7 @@ Changed:~ Removed:~ Fixed:~ + * Issue #950: Correctly follow links containing . * PR #1245 / issue #1244: Fix VimwikiBacklinks handling of bracketed links * Issue #1193: Fix wildcard expansion in |find_autoload_file| * PR #1108: Fix resolution of leading-slash page links, add link tests