nitiwiki: make wikilinks relative
authorJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 15:09:30 +0000 (11:09 -0400)
committerJean Privat <jean@pryen.org>
Fri, 12 Jun 2015 16:40:24 +0000 (12:40 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/nitiwiki/src/wiki_links.nit

index 6dfee80..bdb27da 100644 (file)
@@ -248,7 +248,7 @@ private class NitiwikiDecorator
                        end
                        if target != null then
                                if name == null then name = target.title
-                               link = target.url
+                               link = target.href_from(context)
                        else
                                var loc = context.src_path or else context.name
                                wiki.message("Warning: unknown wikilink `{link}` (in {loc})", 0)