Merge "Use new Special:Log?logid=xxx URL for notification link"

This commit is contained in:
jenkins-bot 2018-05-04 05:59:46 +00:00 committed by Gerrit Code Review
commit fc4893d833

View file

@ -100,9 +100,9 @@ class EchoCoreThanksPresentationModel extends EchoEventPresentationModel {
}
public function getPrimaryLink() {
if ( $this->event->getExtraParam( 'logid' ) ) {
$logId = $this->event->getExtraParam( 'logid' );
$url = Title::newFromText( "Special:Redirect/logid/$logId" )->getCanonicalURL();
$logId = $this->event->getExtraParam( 'logid' );
if ( $logId ) {
$url = SpecialPage::getTitleFor( 'Log' )->getLocalURL( [ 'logid' => $logId ] );
$label = 'notification-link-text-view-logentry';
} else {
$url = $this->event->getTitle()->getLocalURL( [