From a6be81363b6c8ca17c77eb5ba975d7269d2ff3b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bartosz=20Dziewo=C5=84ski?= <matma.rex@gmail.com>
Date: Fri, 5 Oct 2018 21:24:27 +0200
Subject: [PATCH] ve.dm.MWInternalLinkAnnotation: Correctly generate relative
 links

We could generate incorrect links to pages whose title contains a
colon ':' and therefore looks like a fully-qualified URL.

Bug: T206231
Bug: T206357
Change-Id: Ie34694d903a6d97589cc46417f70659559494619
---
 modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js b/modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js
index cd25ef98c..f933551eb 100644
--- a/modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js
+++ b/modules/ve-mw/dm/annotations/ve.dm.MWInternalLinkAnnotation.js
@@ -178,7 +178,7 @@ ve.dm.MWInternalLinkAnnotation.static.getHref = function ( dataElement ) {
 			}
 		} ).join( '' );
 	}
-	return href;
+	return './' + href;
 };
 
 /**
-- 
2.17.1.windows.2

