* Fixed a bug in t3lib/jsfunc.menu.js (base URL was also prepended when link is alrea...
authorBernhard Kraft <kraftb@think-open.at>
Wed, 19 Oct 2005 14:33:47 +0000 (14:33 +0000)
committerBernhard Kraft <kraftb@think-open.at>
Wed, 19 Oct 2005 14:33:47 +0000 (14:33 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@824 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/jsfunc.menu.js

index dde8328..c440b14 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2005-10-19  Bernhard Kraft  <kraftb@kraftb.at>
 
+ * Fixed a bug in t3lib/jsfunc.menu.js (base URL was also prepended when link
+ is already absolute)
+
+2005-10-19  Bernhard Kraft  <kraftb@kraftb.at>
+
  * Fixed bug #200: fe_adminLib: hard-coded Form URL, should be typolink
 
 2005-10-17  Kasper Skårhøj  <kasper2005@typo3.com>
index a52a1c1..7f6bce0 100755 (executable)
@@ -109,7 +109,9 @@ function JSactivate(level) {
                }
                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].url.substr(0,7)!="http://")     {
+                                       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;