Index: trunk/extensions/ImageMap/ImageMap_body.php |
— | — | @@ -195,6 +195,10 @@ |
196 | 196 | if ( $wgNoFollowLinks ) { |
197 | 197 | $attribs['rel'] = 'nofollow'; |
198 | 198 | } |
| 199 | + } else if ( $title->getFragment() != '' && $title->getPrefixedDBkey() == '' ) { |
| 200 | + # XXX: kluge to handle [[#Fragment]] links, should really fix getLocalURL() |
| 201 | + # in Title.php to return an empty string in this case |
| 202 | + $attribs['href'] = $title->getFragmentForURL(); |
199 | 203 | } else { |
200 | 204 | $attribs['href'] = $title->escapeLocalURL() . $title->getFragmentForURL(); |
201 | 205 | } |