Commits

Juha Kuitunen committed d7da52f

fixed wiki links with whitespace in url

  • Participants
  • Parent commits fe69b6d

Comments (0)

Files changed (1)

File assets/wiki.html

 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <title>Wiki</title>
-<!-- <link href="file:///android_asset/prettify.css" type="text/css" rel="stylesheet" /> -->
 <script type="text/javascript" src="file:///android_asset/creole.js"></script>
 </head>
 <body>
 	var links = document.getElementsByTagName("a");
 	for (i=0; i<links.length; i++) {
 		if (links[i].href.substring(0,25) == "https://api.bitbucket.org") {
+			links[i].href = links[i].href.replace(/%20/g,"_");
 			links[i].addEventListener('click', function(url){ return function() { bitbeaker.openWikiLink(url); } }(links[i].href), false);
 			links[i].href="";
 		}