[TYPO3-core] RFC: jsfunc.menu.js patch

Bernhard Kraft kraftb at kraftb.at
Mon Oct 10 00:51:59 CEST 2005


Hallo friends,


This is a CVS patch request.


Type: Bugfix


Description:
The t3lib/jsfunc.menu.js script gets used by the JSMENU menu cObj (Think it also gets
used in BE). The links it awaits for <select> options are realtive to the actual page.
There is code in it to append the <base> href url to the link if it is set. The problem
is that now (pherhaps this wasn't ever so) the links generated by the JSMENU are absolute.
This results in getting redirected to links like:
http://www.mysite.com/http://www.mysite.com/index.php?id=10
which obviously fails to load :(

A fix for that is to check if the link supplied isn't absolute and only then prepend the
base URL.

Reproducability:
Insert a JSMENU, set config.baseURL = 1

Files:
JSMENU_base_patch.diff


greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JSMENU_base_patch.diff
Type: text/x-patch
Size: 809 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20051010/21f71b67/attachment.bin 


More information about the TYPO3-team-core mailing list