Fixed bug 649 <http://bugs.typo3.org/view.php?id=649>.
authorAndreas Otto <andreas.otto@dkd.de>
Mon, 25 Apr 2005 09:30:32 +0000 (09:30 +0000)
committerAndreas Otto <andreas.otto@dkd.de>
Mon, 25 Apr 2005 09:30:32 +0000 (09:30 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@668 709f56b5-9817-0410-a4d7-c38de5d9e867

t3lib/jsfunc.menu.js

index 6a5086f..a52a1c1 100755 (executable)
@@ -108,6 +108,9 @@ function JSactivate(level) {
                        this.entry[this.entry[entryID].parent].openID = entryID;
                }
                if (this.entry[entryID].url)    {
+                       if (document.getElementsByTagName("base")[0].href != "") {
+                               this.entry[entryID].url = document.getElementsByTagName("base")[0].href + this.entry[entryID].url;
+                       }
                        if (!this.entry[entryID].target || this.entry[entryID].target=="_self") {
                                document.location = this.entry[entryID].url;
                        } else if (this.entry[entryID].target=="_top") {