Index: trunk/extensions/WikiLove/modules/ext.wikiLove/ext.wikiLove.core.js |
— | — | @@ -658,10 +658,11 @@ |
659 | 659 | // jump to the correct section, because when we set the hash (#...) |
660 | 660 | // the page won't reload... |
661 | 661 | window.location.reload(); |
662 | | - } else { |
663 | | - window.location = encodeURI( |
| 662 | + } else { // not on user talk page |
| 663 | + window.location = |
| 664 | + // data.redirect.pageName has to be URL encoded but data.redirect.fragment is already encoded |
664 | 665 | mw.config.get( 'wgArticlePath' ).replace( '$1', mw.util.wikiUrlencode( data.redirect.pageName ) ) |
665 | | - + '#' + data.redirect.fragment ); |
| 666 | + + '#' + data.redirect.fragment; |
666 | 667 | } |
667 | 668 | }, |
668 | 669 | error: function() { |