Commits

Matteo Tomasini  committed 83d6c64

Fixed bug in reverse formatter (IE) with internal page link.

  • Participants
  • Parent commits 45e18d2

Comments (0)

Files changed (2)

File AssemblyVersion.cs

 //
 // You can specify all the values or you can default the Revision and Build Numbers 
 // by using the '*' as shown below:
-[assembly: AssemblyVersion("3.0.5.600")]
-[assembly: AssemblyFileVersion("3.0.5.600")]
+[assembly: AssemblyVersion("3.0.5.601")]
+[assembly: AssemblyFileVersion("3.0.5.601")]

File Core/ReverseFormatter.cs

 									string[] splittedLink = link.Split('=');
 									link = "c:" + splittedLink[1];
 								}
-								else if(pageLink) link = link.Remove(link.IndexOf(Settings.PageExtension));
-								else link = ProcessLink(link);
+								else if(pageLink) {
+									link = link.LastIndexOf('/') > 0 ? link.Substring(link.LastIndexOf('/') + 1) : link;
+									link = link.Remove(link.IndexOf(Settings.PageExtension));
+								}
+								else {
+									link = ProcessLink(link);
+								}
 								if(!anchor && !isTable && !childImg) {
 									if(title != link) result += "[" + target + link + "|" + ProcessChild(node.ChildNodes) + "]";
 									else result += "[" + target + link + "|" + ProcessChild(node.ChildNodes) + "]";