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

Kasper Skårhøj kasper2005 at typo3.com
Mon Oct 10 13:34:56 CEST 2005


ok with me.

- kasper


On Monday 10 October 2005 00:51, Bernhard Kraft wrote:
> 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

-- 
- kasper

-----------------
Think future, not feature



More information about the TYPO3-team-core mailing list