#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Wed, 04 Dec 2019 14:20:41 +0100
changeset 4521 e143e651704f
parent 4520 f7e5c7641306
child 4522 37e5eff0f375
#BUGFIX by cg class: HTMLDocGenerator changed: #generateClassDocReferenceFor:text:autoloading:
HTMLDocGenerator.st
--- a/HTMLDocGenerator.st	Wed Dec 04 14:04:28 2019 +0100
+++ b/HTMLDocGenerator.st	Wed Dec 04 14:20:41 2019 +0100
@@ -3015,17 +3015,23 @@
                     info:('Show documentation of ' , className )
                     text:text.
     ] ifFalse:[
-        "/ page is generated for a real http service;
-        "/ generate a link to the services classDocOf page,
+        "/ page is generated for a real http service or to be stored as HTML page;
+        "/ generate a link to the service's classDocOf page,
         "/ Assumes that the server has a classDoc service running.
         httpRequestOrNil notNil ifTrue:[
             serviceLinkName := httpRequestOrNil serviceLinkName.    
+            href := self
+                        anchorFor:(serviceLinkName, '/classDocOf,', (HTMLUtilities escape:className) ) 
+                        info:('Show documentation of ' , className ) 
+                        text:text 
+                        name:nil
+        ] ifFalse:[
+            href := self
+                        anchorFor:((HTMLUtilities escape:className),'.html' ) 
+                        info:('Goto documentation of ' , className ) 
+                        text:text 
+                        name:nil
         ].
-        href := self
-                    anchorFor:(serviceLinkName, '/classDocOf,', (HTMLUtilities escape:className) ) 
-                    info:('Show documentation of ' , className ) 
-                    text:text 
-                    name:nil
     ].
 
     outStream nextPutAll:href.