Browse Source

fixed section links

Markus-Rost 6 years ago
parent
commit
9eca2cc0fc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main.js

+ 1 - 1
main.js

@@ -935,7 +935,7 @@ String.prototype.toTitle = function() {
 };
 };
 
 
 String.prototype.toSection = function() {
 String.prototype.toSection = function() {
-	return encodeURIComponent( this.replace( / /g, '_' ) ).replace( /\'/g, '%27' ).replace( /\%/g, '.' );
+	return encodeURIComponent( this.replace( / /g, '_' ) ).replace( /\'/g, '%27' ).replace( /\(/g, '%28' ).replace( /\)/g, '%29' ).replace( /\%/g, '.' );
 };
 };
 
 
 String.prototype.wikicode = function() {
 String.prototype.wikicode = function() {