Index: trunk/extensions/Wikidata/OmegaWiki/type.php |
— | — | @@ -27,8 +27,8 @@ |
28 | 28 | |
29 | 29 | global $wgArticlePath; |
30 | 30 | |
31 | | - $titleNoSpace = str_replace( " ", "_", $title ) ; |
32 | | - $url = str_replace( "$1", $nameSpace . ':' . urlencode( $titleNoSpace ), $wgArticlePath ); |
| 31 | + $myTitle = str_replace( "&", urlencode("&") , $title ) ; |
| 32 | + $url = str_replace( "$1", $nameSpace . ':' . $myTitle , $wgArticlePath ); |
33 | 33 | |
34 | 34 | if ( $usedc ) { |
35 | 35 | $dc = wdGetDataSetContext(); |