[Typo3-dev] typolink.addQueryString is broken

Christopher bedlamhotel at gmail.com
Mon Nov 21 22:21:24 CET 2005


On 21/11/05, Michael Stucki <michael at typo3.org> wrote:
> Hi Martin,
>
> >>>2.) even if QUERY_STRING would contain a & id would be repeated
> >>
> >> I know. This is not a problem technically because only the last &id is
> >> read by PHP, but if you still want to clean them up, just set
> >> config.uniqueLinkVars.
> >
> > Yep. Is is a standard part if linkVars? I never set it an hesitate to
> > add it to linkVars.
>
> Sorry, didn't understand that question.
>
> >> I use it pretty often for things like language switches, print links,
> >> etc.
> >
> > That's what I wanted it for, but... as reported it simply did'nt work in
> > 3.8.0.
> >
> > I tried (with the added &) to use it as a language switch, but I ran
> > into troubles with cHash params, so I use a userFunc unless I find
> > another solution (like my proposed addQueryString.removeParams).
>
> The solution sounds good. Can you prepare a patch for this, please?
>


A related question: .addQueryString seems to have no effect when used
on sites using RealUrl. Can anyone confirm this..?


-Christopher




More information about the TYPO3-dev mailing list