--- FCKeditorSkin.body.php	2007-12-21 09:17:41.000000000 -0600
+++ FCKeditorSkin.body.fixed.php	2007-12-21 09:16:41.000000000 -0600
@@ -231,7 +231,15 @@
                 }
             }
             //see ticket 1386 why it is commented
-            //$u .= $nt->getFragmentForURL();
+			/*
+			 * Strictly commenting out the following code caused issues with urls structed as
+			 * only fragments, ie "[[#Anchor|Link]]" would become [[|Link]].  By changing it 
+			 * to check for the Partial URL, it allows the original fix to still be valid but 
+			 * removing the issues it caused with same-page anchors.
+			 */
+			if( $nt->getPartialUrl() == '' ) {
+				$u .= $nt->getFragmentForURL();
+			}
         }
         if ( $text == '' ) {
             $text = htmlspecialchars( $nt->getPrefixedText() );
