current:
* Broken redirect (edit) → Target
* Broken redirect with anchor (edit) → Target
new:
* Broken redirect (edit) → Target
* Broken redirect with anchor (edit) → Target#Anchor
Change-Id: Ia2cc2b0610a747662ef2e70cd7829c49e46c74dd
'value' => 'p1.page_title',
'rd_namespace',
'rd_title',
'value' => 'p1.page_title',
'rd_namespace',
'rd_title',
],
'conds' => [
// Exclude pages that don't exist locally as wiki pages,
],
'conds' => [
// Exclude pages that don't exist locally as wiki pages,
function formatResult( $skin, $result ) {
$fromObj = Title::makeTitle( $result->namespace, $result->title );
if ( isset( $result->rd_title ) ) {
function formatResult( $skin, $result ) {
$fromObj = Title::makeTitle( $result->namespace, $result->title );
if ( isset( $result->rd_title ) ) {
- $toObj = Title::makeTitle( $result->rd_namespace, $result->rd_title );
+ $toObj = Title::makeTitle( $result->rd_namespace, $result->rd_title, $result->rd_fragment );
} else {
$blinks = $fromObj->getBrokenLinksFrom(); # TODO: check for redirect, not for links
if ( $blinks ) {
} else {
$blinks = $fromObj->getBrokenLinksFrom(); # TODO: check for redirect, not for links
if ( $blinks ) {
[ 'action' => 'edit' ]
);
}
[ 'action' => 'edit' ]
);
}
- $to = $linkRenderer->makeBrokenLink( $toObj );
+ $to = $linkRenderer->makeBrokenLink( $toObj, $toObj->getFullText() );
$arr = $this->getLanguage()->getArrow();
$out = $from . $this->msg( 'word-separator' )->escaped();
$arr = $this->getLanguage()->getArrow();
$out = $from . $this->msg( 'word-separator' )->escaped();