Index: trunk/extensions/UploadWizard/resources/mw.UploadWizard.js |
— | — | @@ -666,6 +666,7 @@ |
667 | 667 | ); |
668 | 668 | $j( '#contentSub' ).append( feedbackLink ); |
669 | 669 | } |
| 670 | + |
670 | 671 | if ( mw.isDefined( mw.UploadWizard.config['bugList'] ) && mw.UploadWizard.config['bugList'] !== '' ) { |
671 | 672 | $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-bugs', $j( '<a></a>' ).attr( { href: mw.UploadWizard.config['bugList'], target: '_blank' } ) ) ); |
672 | 673 | } |
— | — | @@ -673,7 +674,9 @@ |
674 | 675 | $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-translate', $j( '<a></a>' ).attr( { href: mw.UploadWizard.config['translateHelp'], target: '_blank' } ) ) ); |
675 | 676 | } |
676 | 677 | if ( mw.isDefined( mw.UploadWizard.config['altUploadForm'] ) && mw.UploadWizard.config['altUploadForm'] !== '' ) { |
677 | | - $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-alt-upload', $j( '<a></a>' ).attr( { href: mw.UploadWizard.config['altUploadForm'], target: '_blank' } ) ) ); |
| 678 | + // altUploadForm is expected to be a page title like 'Commons:Upload', so convert to URL |
| 679 | + var altUploadFormUrl = ( new mw.Title( mw.UploadWizard.config['altUploadForm'] ) ).getUrl(); |
| 680 | + $j( '#contentSub' ).append( $j( '<span class="contentSubLink"></span>' ).msg( 'mwe-upwiz-subhead-alt-upload', $j( '<a></a>' ).attr( { href: altUploadFormUrl } ) ) ); |
678 | 681 | } |
679 | 682 | $j( '#contentSub .contentSubLink:not(:last)' ).after( ' · ' ); |
680 | 683 | |