in2code-de / lux

Living User eXperience - LUX - the Marketing Automation tool for TYPO3.

Home Page:https://www.in2code.de/produkte/lux-typo3-marketing-automation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Global config.linkVars settings are interfering with ajax requests

guelzow opened this issue · comments

Hi everyone.

The page TypeNum is added globally to all linkVars here:
https://github.com/in2code-de/lux/blob/develop/Configuration/TypoScript/Lux/20_Configuration.typoscript#L2

When an other TypeNum is used (for example) an ajax search then it's TypeNum is added to every URL generated in the search.
That severely limits the usefulness of this search, because it always points back to the ajax search entrypoint.

Proposed solution:
Add the linkVars to their PageTypes locally, where they are used, and not globally where everybody else is using them.

Tobi

Thx for the valuable feedback. I think you are right. We're going to change this in the near future.