Fixed bug #9741: wrong anchor links with absRefPrefix option enabled
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / tslib / class.tslib_pagegen.php
index a942546..56934e0 100755 (executable)
@@ -638,7 +638,7 @@ See <a href="http://wiki.typo3.org/index.php/TYPO3_3.8.1" target="_blank">wiki.t
                                                if (!$type)     $type = 'text/javascript';
 
                                                $GLOBALS['TSFE']->content.='
                                                if (!$type)     $type = 'text/javascript';
 
                                                $GLOBALS['TSFE']->content.='
-       <script src="'.htmlspecialchars($ss).'" type="'.htmlspecialchars($type).'"></script>';
+       <script src="' . htmlspecialchars($GLOBALS['TSFE']->absRefPrefix . $ss) . '" type="' . htmlspecialchars($type) . '"></script>';
                                        }
                                }
                        }
                                        }
                                }
                        }