Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -518,6 +518,10 @@ |
519 | 519 | $descUrl = $this->img->getDescriptionUrl(); |
520 | 520 | $descText = $this->img->getDescriptionText(); |
521 | 521 | |
| 522 | + if( $descUrl ) { |
| 523 | + $wgOut->addLink( array( 'rel' => 'canonical', 'href' => $descUrl ) ); |
| 524 | + } |
| 525 | + |
522 | 526 | $wrap = "<div class=\"sharedUploadNotice\">\n$1\n</div>\n"; |
523 | 527 | $repo = $this->img->getRepo()->getDisplayName(); |
524 | 528 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -204,6 +204,8 @@ |
205 | 205 | * (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon/text |
206 | 206 | customizable |
207 | 207 | * Added CSS print pagination to the print stylesheets |
| 208 | +* (bug 25960) Add <link rel=canonical"> for File pages of shared/foreign |
| 209 | + file repositories. |
208 | 210 | |
209 | 211 | === Bug fixes in 1.17 === |
210 | 212 | * (bug 17560) Half-broken deletion moved image files to deletion archive |